Changeset 80193
- Timestamp:
- 07/06/11 08:59:55 (4 years ago)
- File:
-
- 1 edited
-
contrib/buildbot/master.cfg (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contrib/buildbot/master.cfg
r80192 r80193 4 4 import json 5 5 import os 6 7 8 def _path(name): 9 return os.path.join(os.path.dirname(__file__), name) 6 10 7 11 # This is a buildmaster config file. It must be installed as … … 17 21 18 22 production = False 19 with open(os.path.join(os.path.dirname(__file__), 'config.json')) as f: 20 production = json.load(f)['production'] 23 if os.path.exists(_path('config.json')): 24 with open(_path('config.json')) as f: 25 production = json.load(f)['production'] 21 26 22 27 ####### BUILDSLAVES … … 30 35 if production: 31 36 slavedata = {} 32 with open( os.path.join(os.path.dirname(__file__),'slaves.json')) as f:37 with open(_path('slaves.json')) as f: 33 38 slavedata = json.load(f) 34 39 for slave, pwd in slavedata.items(): … … 54 59 from buildbot.changes.pb import PBChangeSource 55 60 sourcedata = [] 56 with open( os.path.join(os.path.dirname(__file__),'source.json')) as f:61 with open(_path('source.json')) as f: 57 62 sourcedata = json.load(f) 58 63 c['change_source'] = PBChangeSource(user=sourcedata[0], passwd=sourcedata[1])
Note: See TracChangeset
for help on using the changeset viewer.

