Skip to content

Commit

Permalink
Preventing a launch of Flask when -g none is specified. Fixes #2337
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Oct 24, 2023
1 parent eada0c2 commit 8647f71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fprime_gds/executables/run_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8647f71

Please sign in to comment.