aboutsummaryrefslogtreecommitdiff
path: root/src/run-fit
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-12-03 10:57:41 -0600
committertlatorre <tlatorre@uchicago.edu>2018-12-03 10:57:41 -0600
commitc5913777f7f8164b0e32f74695b233c26035cd78 (patch)
tree18101fb4053982aa51d24a90ffb77a3cdff986fc /src/run-fit
parent203c9b8b8963da0135675515fffed2bd0913f81b (diff)
downloadsddm-c5913777f7f8164b0e32f74695b233c26035cd78.tar.gz
sddm-c5913777f7f8164b0e32f74695b233c26035cd78.tar.bz2
sddm-c5913777f7f8164b0e32f74695b233c26035cd78.zip
update run-fit
Diffstat (limited to 'src/run-fit')
-rwxr-xr-xsrc/run-fit5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/run-fit b/src/run-fit
index d987c37..6c8bb58 100755
--- a/src/run-fit
+++ b/src/run-fit
@@ -1,10 +1,11 @@
#!/usr/bin/env python
from __future__ import print_function, division
import subprocess
-from os.path import splitext
+from os.path import splitext, split
def run_fit(filename):
- root, ext = splitext(filename)
+ head, tail = split(filename)
+ root, ext = splitext(tail)
output = root + '.txt'
cmd = ["./fit", filename, "-o", output]
subprocess.call(cmd)