[issue13506] IDLE sys.path does not contain Current Working Directory

Marco Scataglini report at bugs.python.org
Wed Nov 30 08:07:07 CET 2011


Marco Scataglini <atlantide at gmx.com> added the comment:

... I think it could be fixed by adding

sys.path.insert(0,"")

on the # process sys.argv and sys.path: section in PyShell.py after (~about) line 1383

            sys.path.insert(0, dir)
	sys.path.insert(0,"")        <----HERE
    # check the IDLE settings configuration (but command line overrides)

(Unified diff/patch file attached)

----------
Added file: http://bugs.python.org/file23816/PyShell.py - Udiff

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


More information about the Python-bugs-list mailing list