Skip to content

Commit

Permalink
Add environment variable to set settings path (python#328)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Ware <zach@python.org>

Co-authored-by: Zachary Ware <zach@python.org>
  • Loading branch information
ethanhs and zware committed Jun 13, 2022
1 parent 40594a3 commit dbee537
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 dbee537

Please sign in to comment.