Skip to content

Commit

Permalink
Refactor compiler_gui.py: Fix JSON content access and update variable…
Browse files Browse the repository at this point in the history
… assignments
  • Loading branch information
AIIrondev committed Jun 27, 2024
1 parent b338b92 commit bc59661
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Code/compiler_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc59661

Please sign in to comment.