Commit 0bc9ce7f authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen

fix error when searching for files. os.path.split would sometimes return an...

fix error when searching for files.  os.path.split would sometimes return an empty string for the path, causing os.path.join to later generate wrong paths.
parent 30a1689a
......@@ -213,8 +213,10 @@ def register_octopus_keywords(pew, category, kwargs):
def parse(fname, fd):
# fname refers to the static/info file.
# Look for files before we create some of our own files for logging etc.:
staticdirname, _basefname = os.path.split(fname)
absfname = os.path.abspath(fname)
staticdirname, _basefname = os.path.split(absfname)
dirname, _static = os.path.split(staticdirname)
assert _static == 'static'
inp_path = os.path.join(dirname, 'inp')
parser_log_path = os.path.join(dirname, 'exec', 'parser.log')
logfile = find_octopus_logfile(dirname)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment