Add last ditch config read
This commit is contained in:
parent
dc2d476202
commit
34b4d010f5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user