-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I am unable to run "preprocess -h" in the dos-prompt on my windows 7 system and
pythonxy v2.7.9 out of the box after installation.
I found that it has to do with the console script is not properly registered.
By changing the following in setup.py:
Replace
from distutils.core import setup
with
from setuptools import setup
and
scripts=[script],
with
entry_points={
'console_scripts': ['preprocess = preprocess:main']},
and redefining the beginning of the main function in preprocess to:
def main(argv=None):
if argv is None:
argv = sys.argv
it worked out of the box for me.
Original issue reported on code.google.com by Per.Andreas.Brodtkorb@gmail.com on 19 Jan 2015 at 2:01