diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-09 18:53:11 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2020-10-13 19:08:54 +0200 |
commit | 73d0c7a96df2212d5a3ee6289fc286f3e6459028 (patch) | |
tree | d304904b19b1ef365213876a60e19e232a36c95a /branding/scripts/getparam | |
parent | e4a2efb527fb09b548c14b13d28d0780941ca72d (diff) |
[pkg] refactor vendor init/check
Diffstat (limited to 'branding/scripts/getparam')
-rwxr-xr-x | branding/scripts/getparam | 5 |
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) |