Skip to content

Commit

Permalink
Print an error if the smulator venv has not been created
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Aug 17, 2024
1 parent 2e56b3b commit e080e9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/run_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
print("Webots executable not found.")
raise RuntimeError

if not (Path(__file__).parent / "venv").exists():
print("Please run the setup.py script before running the simulator.")
raise RuntimeError

# Run the world file in Webots,
# detaching the process so it does not close when this script does
if sys.platform == "win32":
Expand Down

0 comments on commit e080e9e

Please sign in to comment.