fix loading configfile from ~/.config/

This commit is contained in:
domfi 2022-04-15 16:11:21 +02:00 committed by GitHub
parent 61edff3e87
commit fc312a095c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ def loadconfig(config_location = None):
win_popup_button(f'Unable to read supplied configuration from any location!', 'OK') win_popup_button(f'Unable to read supplied configuration from any location!', 'OK')
return False return False
elif os.name == 'posix': #Linux elif os.name == 'posix': #Linux
config_location = '~/.config/VDIClient/vdiclient.ini' config_location = os.path.expanduser('~/.config/VDIClient/vdiclient.ini')
if not os.path.exists(config_location): if not os.path.exists(config_location):
config_location = '/etc/vdiclient/vdiclient.ini' config_location = '/etc/vdiclient/vdiclient.ini'
if not os.path.exists(config_location): if not os.path.exists(config_location):