With a buildout.cfg section that looks like:

[py]
recipe = zc.recipe.egg
eggs = ...
interpreter = py

If I try and do:

bin/py -m some.moldule

...I get:

Traceback (most recent call last):
  File "bin/py", line 28, in <module>
    _options, _args = getopt.getopt(sys.argv[1:], 'ic:')
  File "/usr/local/lib/python2.6/getopt.py", line 91, in getopt
    opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
  File "/usr/local/lib/python2.6/getopt.py", line 191, in do_shorts
    if short_has_arg(opt, shortopts):
  File "/usr/local/lib/python2.6/getopt.py", line 207, in short_has_arg
    raise GetoptError('option -%s not recognized' % opt, opt)

How should whatever generates bin/py be changed to enable -m to work?

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to