Commit b194c5fc authored by Baiju M's avatar Baiju M

Fix #149352 : setup sub-command without any argument error

ref: https://bugs.launchpad.net/bugs/149352
parent 5d8538b7
......@@ -725,6 +725,10 @@ class Buildout(UserDict.DictMixin):
ep.load()(self)
def setup(self, args):
if not args:
raise zc.buildout.UserError(
"setup command expects one or more arguments.\n"
)
setup = args.pop(0)
if os.path.isdir(setup):
setup = os.path.join(setup, 'setup.py')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment