Commit f52755a0 authored by baijum's avatar baijum

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

ref: https://bugs.launchpad.net/bugs/149352


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@80638 62d5b8a3-27da-0310-9561-8e5933582275
parent 5de1766b
......@@ -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