From 80f272ee88b158cd6f7444b8b6db62cf19dfa816 Mon Sep 17 00:00:00 2001 From: chrisjbillington Date: Wed, 24 Jun 2020 20:45:17 -0400 Subject: [PATCH] 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). --- runmanager/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runmanager/__main__.py b/runmanager/__main__.py index 1912adb..3eb7873 100644 --- a/runmanager/__main__.py +++ b/runmanager/__main__.py @@ -3483,7 +3483,8 @@ def send_to_runviewer(self, run_file): # Runviewer not running, start it: if os.name == 'nt': creationflags = 0x00000008 # DETACHED_PROCESS from the win32 API - subprocess.Popen([sys.executable, '-m', 'runviewer'], + scripts_dir = desktop_app.environment.get_scripts_dir('runviewer') + subprocess.Popen([str(scripts_dir / 'runviewer-gui')], creationflags=creationflags, stdout=None, stderr=None, close_fds=True) else: