[issue13506] IDLE sys.path does not contain Current Working Directory
Roger Serwy
report at bugs.python.org
Sun Dec 4 00:00:26 CET 2011
Roger Serwy <roger.serwy at gmail.com> added the comment:
I have given this issue some further consideration, and realized that my "+1" recommendation was not correct.
Starting the interactive python interpreter will automatically include [''] in sys.path. A fresh restart of IDLE's shell does NOT include ''.
However, running a python script will have sys.path include the absolute path to the script. IDLE's shell does do this in conjunction with ScriptBinding's "Run Module".
The new patch preserves the existing correct behavior, but also fixes the issue.
----------
keywords: +patch
Added file: http://bugs.python.org/file23846/issue13506.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13506>
_______________________________________
More information about the Python-bugs-list
mailing list