Skip to content

Commit

Permalink
Ensure workspace check is made before attempting to fill it.
Browse files Browse the repository at this point in the history
  • Loading branch information
glipR committed May 17, 2021
1 parent e3bd74a commit 01e7bd4
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 01e7bd4

Please sign in to comment.