Skip to content

Commit

Permalink
Trac buildbot#527: make "buildbot start" directory optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddunbar committed Dec 27, 2009
1 parent 95a2433 commit af5c745
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions buildbot/scripts/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ def parseArgs(self, *args):
if len(args) > 0:
self['basedir'] = args[0]
else:
self['basedir'] = None
# Use the current directory if no basedir was specified.
self['basedir'] = os.getcwd()
if len(args) > 1:
raise usage.UsageError("I wasn't expecting so many arguments")

def postOptions(self):
if self['basedir'] is None:
raise usage.UsageError("<basedir> parameter is required")
self['basedir'] = os.path.abspath(self['basedir'])

makefile_sample = """# -*- makefile -*-
Expand Down

0 comments on commit af5c745

Please sign in to comment.