Skip to content

Commit

Permalink
Do not automatically open web browser in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Nov 26, 2024
1 parent 086359a commit 3c45f5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arcmapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def wait_for_server(

def main():
if len(sys.argv) > 1 and sys.argv[1] in ["--debug", "-d"]:
print("Using debug mode...")
print("[DEBUG]")
app.run_server(debug=True)
return
if check_port(ARCMAPPER_HOST, ARCMAPPER_PORT):
Expand All @@ -77,7 +77,7 @@ def main():
ARCMAPPER_PORT,
ARCMAPPER_TIMEOUT,
)
webbrowser.open(f"http://{ARCMAPPER_HOST}:{ARCMAPPER_PORT}")
print(f"[PROD] Open browser at http://{ARCMAPPER_HOST}:{ARCMAPPER_PORT}")
# Join the server thread and wait for it to finish or be closed
server_thread.join()

Expand Down

0 comments on commit 3c45f5f

Please sign in to comment.