From 34b4d010f5ad06fbba066cbd387ae279a5ee2c7f Mon Sep 17 00:00:00 2001 From: jpattWPC Date: Mon, 11 Jul 2022 13:54:10 -0500 Subject: [PATCH] Add last ditch config read --- vdiclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vdiclient.py b/vdiclient.py index 15fcdaa..819f826 100644 --- a/vdiclient.py +++ b/vdiclient.py @@ -70,6 +70,9 @@ def loadconfig(config_location = None): config_location = f'{os.getenv("PROGRAMFILES")}\\VDIClient\\vdiclient.ini' if not os.path.exists(config_location): config_location = f'{os.getenv("PROGRAMFILES(x86)")}\\VDIClient\\vdiclient.ini' + if not os.path.exists(config_location): + # Last ditch effort + config_location = 'C:\\Program Files\\VDIClient\\vdiclient.ini' if not os.path.exists(config_location): win_popup_button(f'Unable to read supplied configuration from any location!', 'OK') return False