[issue8202] sys.argv[0] and python -m package

Nick Coghlan report at bugs.python.org
Sun Jun 13 08:55:44 CEST 2010


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Reverted in r81964, marking as 3.2 only.

For 3.2, I'll get rid of the hack by having SetArgV treat both "-c" and "-m" as special values for sys.argv[0], and by adding some unit tests that make sure the presence of files with those names has no effect on the value of sys.path[0] when the corresponding command line switches are used.

----------
stage: commit review -> unit test needed
versions:  -Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8202>
_______________________________________


More information about the Python-bugs-list mailing list