From fc312a095c2bfbe6f1e2aaa8fbd23e7628fd8122 Mon Sep 17 00:00:00 2001 From: domfi Date: Fri, 15 Apr 2022 16:11:21 +0200 Subject: [PATCH] fix loading configfile from ~/.config/ --- vdiclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdiclient.py b/vdiclient.py index 46ab7f9..ac07db8 100644 --- a/vdiclient.py +++ b/vdiclient.py @@ -67,7 +67,7 @@ def loadconfig(config_location = None): win_popup_button(f'Unable to read supplied configuration from any location!', 'OK') return False 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): config_location = '/etc/vdiclient/vdiclient.ini' if not os.path.exists(config_location):