[issue1877] unhelpful error when calling "python <dirname>"
Nick Coghlan
report at bugs.python.org
Sat Feb 23 06:49:08 CET 2008
Nick Coghlan added the comment:
The mutation of sys.path is deliberate - the use case is to allow the
interpreter to execute a zipfile directly and have access to all of the
Python modules and packages bundled along with __main__.py. Supporting
execution of directories as well makes it much easier to test your
application before bundling it that way (since you can test with the
directory till it works, zip the directory, test with the zipfile, then
distribute it).
You can find more details on this feature in issue 1739468
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1877>
__________________________________
More information about the Python-bugs-list
mailing list