I wrote a small command-line utility in Python. I also created setup.py script:
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'name': 'clitool',
'author': 'aa',
'author_email': 'ww',
'version': '1.0-rc',
'install_requires': ['nose'],
'packages': [],
'scripts': ['clitool']
}
setup(**config)
When I call:
setup.py install
my script copied to C:\Python34\Scripts path. This path is in the PATH variable, but Windows when I try to start my clitool from some direcory writes:
"clitool" not recognized as an internal or external command
It's possible to run from any directory, only the files from C:\Python34\Scripts with the exe extension.
But my script is copied as a file without extension and in Windows it does not run it.
clitool.py? It should have a.pyextension (although there are others)clitool.pyis works, but I wanted to write so that the utility can be called without .py extension.cmdfile to run your python. Is that what you want?django-adminworks