Skip to content

Commit 8769ac5

Browse files
committed
Fix configure.py
1 parent 08b374e commit 8769ac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def save_config_values(self):
419419
self.config['display']['DISPLAY_REVERSE'] = [k for k, v in reverse_map.items() if v == self.orient_cb.get()][0]
420420
self.config['display']['BRIGHTNESS'] = int(self.brightness_slider.get())
421421

422-
with open("config.yaml", "w", encoding='utf-8') as file:
422+
with open(MAIN_DIRECTORY + "config.yaml", "w", encoding='utf-8') as file:
423423
ruamel.yaml.YAML().dump(self.config, file)
424424

425425
def save_additional_config(self, ping: str, api_key: str, lat: str, long: str, unit: str, lang: str):
@@ -430,7 +430,7 @@ def save_additional_config(self, ping: str, api_key: str, lat: str, long: str, u
430430
self.config['config']['WEATHER_UNITS'] = unit
431431
self.config['config']['WEATHER_LANGUAGE'] = lang
432432

433-
with open("config.yaml", "w", encoding='utf-8') as file:
433+
with open(MAIN_DIRECTORY + "config.yaml", "w", encoding='utf-8') as file:
434434
ruamel.yaml.YAML().dump(self.config, file)
435435

436436
def on_theme_change(self, e=None):

0 commit comments

Comments
 (0)