Skip to content
Snippets Groups Projects
Commit 720233aa authored by Simon McVittie's avatar Simon McVittie
Browse files

test-ui: Consistently use __file__ to find itself


This has the advantage of always being an absolute path.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent f20c59be
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ class Gui:
continue
source_of_runtimes = os.path.join(
os.path.dirname(sys.argv[0]),
os.path.dirname(__file__),
search,
)
......@@ -295,7 +295,7 @@ class Gui:
subproc = subprocess.Popen(
[
os.path.join(
os.path.dirname(sys.argv[0]),
os.path.dirname(__file__),
'pressure-vessel-wrap'
),
'--version-only',
......@@ -437,7 +437,7 @@ class Gui:
'env',
'G_MESSAGES_DEBUG=all',
os.path.join(
os.path.dirname(sys.argv[0]),
os.path.dirname(__file__),
'pressure-vessel-wrap'
),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment