diff --git a/ev3sim/visual/menus/main.py b/ev3sim/visual/menus/main.py index 1407f1ab..4bb58846 100644 --- a/ev3sim/visual/menus/main.py +++ b/ev3sim/visual/menus/main.py @@ -46,7 +46,10 @@ def playSim(self, preset): bot_config = yaml.safe_load(f) if not BotValidator.validate_json(bot_config): to_remove.append(index) - fname = bot_config.get("script", "code.py") + if bot_config.get("type", "python") == "python": + fname = bot_config.get("script", "code.py") + else: + fname = bot_config.get("script", "program.ev3") if not os.path.exists(os.path.join(find_abs(sim_config["bots"][index], bot_locations()), fname)): def action():