Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add a 'headless' option to run.py to allow wolf_sheep to run headless
  • Loading branch information
Stephen Mubita committed Apr 25, 2023
commit 5c83ba1831dadef471f4fab8db056027df7e4572
8 changes: 7 additions & 1 deletion examples/wolf_sheep/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
from wolf_sheep.server import server
import sys

server.launch()
open_browser: bool = True

if sys.argv[1] == 'headless':
open_browser = False

server.launch(open_browser=open_browser)