summaryrefslogtreecommitdiff
path: root/branding/scripts/provider.py
diff options
context:
space:
mode:
Diffstat (limited to 'branding/scripts/provider.py')
-rw-r--r--branding/scripts/provider.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/branding/scripts/provider.py b/branding/scripts/provider.py
index ec8c80a..9f6bb08 100644
--- a/branding/scripts/provider.py
+++ b/branding/scripts/provider.py
@@ -3,12 +3,13 @@ import os
def getDefaultProvider(config):
- provider = os.environ.get('PROVIDER')
- if provider:
- print('[+] Got provider {} from environment'.format(provider))
- else:
+ if os.environ.get('VENDOR_PATH'):
print('[+] Using default provider from config file')
provider = config['default']['provider']
+ else:
+ provider = os.environ.get('PROVIDER')
+ if provider:
+ print('[+] Got provider {} from environment'.format(provider))
return provider