From 01e7bd489abd301fcb711604ec9cb6a91b24cb9e Mon Sep 17 00:00:00 2001 From: glipR <37640160+glipR@users.noreply.github.com> Date: Mon, 17 May 2021 20:09:32 +1000 Subject: [PATCH] Ensure workspace check is made before attempting to fill it. --- ev3sim/updates.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ev3sim/updates.py b/ev3sim/updates.py index ca797475..bd7b299b 100644 --- a/ev3sim/updates.py +++ b/ev3sim/updates.py @@ -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