1 Commits
1.0.4 ... 1.0.5

Author SHA1 Message Date
jpattWPC
34b4d010f5 Add last ditch config read 2022-07-11 13:54:10 -05:00

View File

@@ -70,6 +70,9 @@ def loadconfig(config_location = None):
config_location = f'{os.getenv("PROGRAMFILES")}\\VDIClient\\vdiclient.ini' config_location = f'{os.getenv("PROGRAMFILES")}\\VDIClient\\vdiclient.ini'
if not os.path.exists(config_location): if not os.path.exists(config_location):
config_location = f'{os.getenv("PROGRAMFILES(x86)")}\\VDIClient\\vdiclient.ini' 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): if not os.path.exists(config_location):
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