- changed status to resolved
Make the DIR_OR_FILE_OR_ARCHIVE argument optional
If the DIR_OR_FILE_OR_ARCHIVE argument were optional, you could just supply -m and it would create a file with just a main.py. This would be useful for writing wrapper scripts round existing library entry points.
For example, I have a virtualenv "C:\Apps\IPython" containing IPython. I can run it via C:\Apps\IPython\Scripts\ipython3.exe, but that's a bit of a mouthful. If I do "pyzzer -l t64 -s C:\Apps\IPython\Scripts\python.exe -o IPython.exe -m IPython.frontend.terminal.ipapp:launch_new_instance" I have an IPython.exe that I can locate in a directory that's already on my PATH which will start IPython from anywhere. (I can do this at the moment by using a dummy module that I never use, but not having to have that around would be a nice little tidy-up).
Comments (1)
-
repo owner - Log in to comment
Should be fixed in bb86c67, and should be in the next release.