This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brett.cannon, pitrou
Date 2012-02-18.20:38:46
SpamBayes Score 1.0374215e-05
Marked as misclassified No
Message-id <1329597527.35.0.680600221226.issue14052@psf.upfronthosting.co.za>
In-reply-to
Content
An empty sys.path string means the current directory in relative terms:

$ touch foo.py
$ python3 -c "import foo; print(foo.__file__)"
foo.py


But importlib uses os.getcwd() instead in PathFinder._path_importer_cache(). This impacts semantics of path searching, as well as the values of __file__ and __cached__ attributes.
History
Date User Action Args
2012-02-18 20:38:47pitrousetrecipients: + pitrou, brett.cannon
2012-02-18 20:38:47pitrousetmessageid: <1329597527.35.0.680600221226.issue14052@psf.upfronthosting.co.za>
2012-02-18 20:38:46pitroulinkissue14052 messages
2012-02-18 20:38:46pitroucreate