From 78f90a61b7aae3997d425454ba1f9a3c7500a024 Mon Sep 17 00:00:00 2001 From: jpattWPC Date: Mon, 11 Jul 2022 13:44:43 -0500 Subject: [PATCH] Work around MS inconsistency --- dist/vdiclient.json | 2 +- vdiclient.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/vdiclient.json b/dist/vdiclient.json index 457a1fc..3d6fa8e 100644 --- a/dist/vdiclient.json +++ b/dist/vdiclient.json @@ -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", diff --git a/vdiclient.py b/vdiclient.py index 3c904a8..15fcdaa 100644 --- a/vdiclient.py +++ b/vdiclient.py @@ -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