[issue31874] [feature] runpy.run_module should mimic script launch behavior for sys.path
Jason R. Coombs
report at bugs.python.org
Thu Oct 26 10:07:12 EDT 2017
Jason R. Coombs <jaraco at jaraco.com> added the comment:
At first, I didn't understand why one wouldn't simply omit sys.path[0], similar to what scripts do, but then I realized that Nick was aware of a common use-case that I was overlooking - that `python -m` may be used to launch behavior in a local package - in which case it's relevant and important that sys.path[0] == ''.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31874>
_______________________________________
More information about the Python-bugs-list
mailing list