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
32805092
Commit
32805092
authored
Oct 21, 2019
by
Lukas Weber
Browse files
python: fix pathname resolution
parent
78e37406
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/loadleveller/taskmaker.py
View file @
32805092
...
...
@@ -11,7 +11,7 @@ except ImportError:
def
_expand_path
(
path
):
scriptdir
=
os
.
path
.
dirname
(
sys
.
argv
[
0
])
return
os
.
path
.
abspath
(
os
.
path
.
expandvars
(
os
.
path
.
expanduser
(
os
.
path
.
join
(
scriptdir
,
path
))))
return
os
.
path
.
abspath
(
os
.
path
.
join
(
scriptdir
,
os
.
path
.
expandvars
(
os
.
path
.
expanduser
(
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