Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Weber
load_leveller
Commits
6128a19d
Commit
6128a19d
authored
Oct 21, 2019
by
Lukas Weber
Browse files
taskmaker: resolve all paths relative to jobscript
parent
9f2843fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/loadleveller/taskmaker.py
View file @
6128a19d
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment