Work around MS inconsistency
This commit is contained in:
parent
ab792f2a2a
commit
78f90a61b7
2
dist/vdiclient.json
vendored
2
dist/vdiclient.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"upgrade_guid" : "46cbad92-353e-4b28-9bee-83950991dad8",
|
"upgrade_guid" : "46cbad92-353e-4b28-9bee-83950991dad8",
|
||||||
"version" : "1.0.2",
|
"version" : "1.0.3",
|
||||||
"product_name" : "VDI Client",
|
"product_name" : "VDI Client",
|
||||||
"manufacturer" : "Josh Patten",
|
"manufacturer" : "Josh Patten",
|
||||||
"name" : "VDI Client",
|
"name" : "VDI Client",
|
||||||
|
@ -68,6 +68,8 @@ def loadconfig(config_location = None):
|
|||||||
config_location = f'{os.getenv("APPDATA")}\\VDIClient\\vdiclient.ini'
|
config_location = f'{os.getenv("APPDATA")}\\VDIClient\\vdiclient.ini'
|
||||||
if not os.path.exists(config_location):
|
if not os.path.exists(config_location):
|
||||||
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):
|
||||||
|
config_location = f'{os.getenv("PROGRAMFILES(x86)")}\\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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user