Skip to content

Commit 80f272e

Browse files
Fix issue #92
Launch runviewer using the runviewer-gui launcher, for consistency with how it would be launched by a human, and to ensure it has a hidden console window of its own instead of no console window (the cause of issue #92).
1 parent 6a7d105 commit 80f272e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runmanager/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3483,7 +3483,8 @@ def send_to_runviewer(self, run_file):
34833483
# Runviewer not running, start it:
34843484
if os.name == 'nt':
34853485
creationflags = 0x00000008 # DETACHED_PROCESS from the win32 API
3486-
subprocess.Popen([sys.executable, '-m', 'runviewer'],
3486+
scripts_dir = desktop_app.environment.get_scripts_dir('runviewer')
3487+
subprocess.Popen([str(scripts_dir / 'runviewer-gui')],
34873488
creationflags=creationflags, stdout=None, stderr=None,
34883489
close_fds=True)
34893490
else:

0 commit comments

Comments
 (0)