Work around MS inconsistency

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

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"upgrade_guid" : "46cbad92-353e-4b28-9bee-83950991dad8",
"version" : "1.0.2",
"version" : "1.0.3",
"product_name" : "VDI Client",
"manufacturer" : "Josh Patten",
"name" : "VDI Client",
+2
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