diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-12-03 10:57:41 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-12-03 10:57:41 -0600 |
commit | c5913777f7f8164b0e32f74695b233c26035cd78 (patch) | |
tree | 18101fb4053982aa51d24a90ffb77a3cdff986fc /src/run-fit | |
parent | 203c9b8b8963da0135675515fffed2bd0913f81b (diff) | |
download | sddm-c5913777f7f8164b0e32f74695b233c26035cd78.tar.gz sddm-c5913777f7f8164b0e32f74695b233c26035cd78.tar.bz2 sddm-c5913777f7f8164b0e32f74695b233c26035cd78.zip |
update run-fit
Diffstat (limited to 'src/run-fit')
-rwxr-xr-x | src/run-fit | 5 |
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) |