Fix settings not being applied
This commit is contained in:
parent
bac386dd98
commit
bf156cb6e2
|
@ -102,12 +102,12 @@ for location in config_locations:
|
|||
if os.path.exists( os.path.expanduser(os.path.join(location, 'config.toml'))):
|
||||
with open(os.path.expanduser(location + 'config.toml'), 'rb') as config_file:
|
||||
project_settings = tomllib.load(config_file)
|
||||
if 'DEFAULT' in project_settings:
|
||||
project_settings = project_settings['DEFAULT']
|
||||
if 'CAMERA' in project_settings:
|
||||
camera_settings = project_settings['CAMERA']
|
||||
if 'CHECK' in project_settings:
|
||||
camera_settings = project_settings['CHECK']
|
||||
if 'CAMERA' in project_settings:
|
||||
camera_settings = project_settings['CAMERA']
|
||||
if 'DEFAULT' in project_settings:
|
||||
project_settings = project_settings['DEFAULT']
|
||||
config_found_msg = _("Found configuration file in {}").format(os.path.expanduser(location))
|
||||
print(config_found_msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue