From c5913777f7f8164b0e32f74695b233c26035cd78 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 3 Dec 2018 10:57:41 -0600 Subject: update run-fit --- src/run-fit | 5 +++-- 1 file 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) -- cgit