Fixed #48 an error occurig on Linux where configuration file path are not properly resolved during startup with the binary version of the program

This commit is contained in:
Marco Dalla Tiezza
2024-06-10 20:40:46 +02:00
parent b48a42dcc8
commit 436c54b733
2 changed files with 3 additions and 2 deletions

View File

@@ -62,8 +62,8 @@ def check_conf_file():
and if it is different in structure (different section/options)
it will merge the conf file with the new template one
"""
active_conf = PREFERENCES_DIR / 'qtquickcontrols2.conf'
template_conf = BASE_DIR / 'config' / 'qtquickcontrols2.conf'
active_conf = (PREFERENCES_DIR / 'qtquickcontrols2.conf').resolve()
template_conf = (BASE_DIR / 'config' / 'qtquickcontrols2.conf').resolve()
if not active_conf.exists():
copy_file(template_conf, active_conf)