summaryrefslogtreecommitdiff
path: root/branding/scripts/getparam
diff options
context:
space:
mode:
Diffstat (limited to 'branding/scripts/getparam')
-rwxr-xr-xbranding/scripts/getparam5
1 files changed, 3 insertions, 2 deletions
diff --git a/branding/scripts/getparam b/branding/scripts/getparam
index 2b87e1e..235745d 100755
--- a/branding/scripts/getparam
+++ b/branding/scripts/getparam
@@ -13,9 +13,10 @@ from provider import getProviderData
def getData():
here = os.path.abspath(os.path.dirname(__file__))
- configPath = os.path.join(here, '../../branding/config/vendor.conf')
+ vendorPath = os.environ.get('VENDOR_PATH')
+ configPath = os.path.join(vendorPath, 'vendor.conf')
if not os.path.isfile(configPath):
- print("ERROR: path does not exist", config)
+ print("ERROR: path does not exist", configPath)
os.exit(1)
config = configparser.ConfigParser()
config.read(configPath)