Skip to content

Commit

Permalink
Merge pull request #267 from MelbourneHighSchoolRobotics/workspace_fix
Browse files Browse the repository at this point in the history
Ensure workspace check is made before attempting to fill it.
  • Loading branch information
glipR authored May 17, 2021
2 parents e3bd74a + 01e7bd4 commit 50b1ef4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ev3sim/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ def action(result):

def fill_workspace():
"""Always ensure workspace has the necessary folders."""
ensure_workspace_filled(find_abs_directory("workspace"))
from ev3sim.simulation.loader import StateHandler

if StateHandler.WORKSPACE_FOLDER:
ensure_workspace_filled(find_abs_directory("workspace"))
return None


Expand Down

0 comments on commit 50b1ef4

Please sign in to comment.