Add last ditch config read

This commit is contained in:
jpattWPC 2022-07-11 13:54:10 -05:00
parent dc2d476202
commit 34b4d010f5

View File

@ -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