Commit 6128a19d authored by Lukas Weber's avatar Lukas Weber
Browse files

taskmaker: resolve all paths relative to jobscript

parent 9f2843fe
......@@ -10,7 +10,8 @@ except ImportError:
from yaml import SafeLoader, SafeDumper
def _expand_path(path):
return os.path.abspath(os.path.expandvars(os.path.expanduser(path)))
scriptdir = os.path.dirname(sys.argv[0])
return os.path.abspath(os.path.expandvars(os.path.expanduser(os.path.join(scriptdir,path))))
def JobConfig(filename):
with open(_expand_path(filename), 'r') as f:
Supports Markdown
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