From d33a4a041ab5d9e11e127d8a0e18205f97f4cabd Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 9 Jul 2019 18:20:10 +0200 Subject: [feat] allow overriding of PROVIDER_CONFIG --- branding/scripts/vendorize.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'branding/scripts') diff --git a/branding/scripts/vendorize.py b/branding/scripts/vendorize.py index c600967..dc19952 100755 --- a/branding/scripts/vendorize.py +++ b/branding/scripts/vendorize.py @@ -88,6 +88,12 @@ if __name__ == "__main__": except IndexError: bail() + env_provider_conf = os.environ.get('PROVIDER_CONFIG') + if env_provider_conf: + if os.path.isfile(env_provider_conf): + print("[+] Overriding provider config per PROVIDER_CONFIG variable") + configfile = env_provider_conf + if not os.path.isfile(infile): bail('[!] Cannot find template in {path}'.format( path=os.path.abspath(infile))) -- cgit v1.2.3