Skip to content

Commit

Permalink
Add environment variable to set settings path (#328)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Ware <[email protected]>

Co-authored-by: Zachary Ware <[email protected]>
  • Loading branch information
emmatyping and zware authored Jun 11, 2022
1 parent 19e5642 commit f84d6c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def set_up_sentry():
log.addObserver(logToSentry)

settings_path = os.path.join('/etc', 'buildbot', 'settings.yaml')
settings_path = os.environ.get('PYBUILDBOT_SETTINGS_PATH', settings_path)

try:
settings = Settings.from_file(settings_path)
Expand Down

0 comments on commit f84d6c1

Please sign in to comment.