From 830be13ff9eae9355ab40b3c9ddb4c88c2416aef Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Sat, 12 Mar 2022 16:02:26 -0500 Subject: [PATCH] Update hexapod.py --- software/raspberry pi/hexapod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/raspberry pi/hexapod.py b/software/raspberry pi/hexapod.py index 120aa00..b195122 100644 --- a/software/raspberry pi/hexapod.py +++ b/software/raspberry pi/hexapod.py @@ -350,7 +350,7 @@ class Hexapod(Thread): def save_config(self): try: - json.dump(self.config, open('config.json', 'w+'), indent=4) + json.dump(self.config, open('/home/pi/hexapod/software/raspberry pi/config.json', 'w+'), indent=4) except PermissionError as err: pass