phase1: allow overriding config.ini location with env var
authorJo-Philipp Wich <jo@mein.io>
Sun, 30 Jun 2019 19:24:05 +0000 (21:24 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 2 Jul 2019 15:47:01 +0000 (17:47 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index 5350a433d32d75b83dd6f43eeff23a99eaa77cec..1061eb27fa72eea36501199b66a56433c2d72721 100644 (file)
@@ -13,7 +13,7 @@ from buildbot import locks
 # 'master.cfg' in your buildmaster's base directory.
 
 ini = ConfigParser.ConfigParser()
-ini.read("./config.ini")
+ini.read(os.getenv("BUILDMASTER_CONFIG", "./config.ini"))
 
 # This is the dictionary that the buildmaster pays attention to. We also use
 # a shorter alias to save typing.