From 8647f71db3696d441b1cc1d635eb2502ec72f704 Mon Sep 17 00:00:00 2001 From: M Starch Date: Tue, 24 Oct 2023 09:53:42 -0700 Subject: [PATCH] Preventing a launch of Flask when -g none is specified. Fixes #2337 --- src/fprime_gds/executables/run_deployment.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fprime_gds/executables/run_deployment.py b/src/fprime_gds/executables/run_deployment.py index cde99133..0b9b9a83 100644 --- a/src/fprime_gds/executables/run_deployment.py +++ b/src/fprime_gds/executables/run_deployment.py @@ -112,10 +112,9 @@ def launch_html(parsed_args): str(parsed_args.gui_port), ] ret = launch_process(gse_args, name="HTML GUI", env=flask_env, launch_time=2) - if parsed_args.gui == "html": - webbrowser.open( - f"http://{str(parsed_args.gui_addr)}:{str(parsed_args.gui_port)}/", new=0, autoraise=True - ) + webbrowser.open( + f"http://{str(parsed_args.gui_addr)}:{str(parsed_args.gui_port)}/", new=0, autoraise=True + ) return ret @@ -172,7 +171,8 @@ def main(): print("[WARNING] App cannot be auto-launched without IP adapter") # Launch the desired GUI package - launchers.append(launch_html) + if parsed_args.gui == "html": + launchers.append(launch_html) # Launch launchers and wait for the last app to finish try: