Work around MS inconsistency

This commit is contained in:
jpattWPC
2022-07-11 13:44:43 -05:00
parent ab792f2a2a
commit 78f90a61b7
2 changed files with 3 additions and 1 deletions

View File

@@ -68,6 +68,8 @@ def loadconfig(config_location = None):
config_location = f'{os.getenv("APPDATA")}\\VDIClient\\vdiclient.ini'
if not os.path.exists(config_location):
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):
win_popup_button(f'Unable to read supplied configuration from any location!', 'OK')
return False