From bc596619865499d67a24e3b6abb3527553322727 Mon Sep 17 00:00:00 2001 From: Maximilian Gruendinger Date: Fri, 28 Jun 2024 00:37:51 +0200 Subject: [PATCH] Refactor compiler_gui.py: Fix JSON content access and update variable assignments --- Code/compiler_gui.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Code/compiler_gui.py b/Code/compiler_gui.py index 0754022..1dd5ff3 100644 --- a/Code/compiler_gui.py +++ b/Code/compiler_gui.py @@ -19,12 +19,12 @@ with open(conf_file, "r") as file: content = json.load(file) - calibrate = content("calibrate") - __version__ = content("version") - module = content("module") - motor = content("motor") - sensor = content("sensor") - variables = content("variables") + calibrate = content["calibrate"] + __version__ = content["version"] + module = content["module"] + motor = content["motor"] + sensor = content["sensor"] + variables = content["variables"] with open("version", "r") as f: