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 madison.may
Recipients Arfrever, brett.cannon, madison.may, ncoghlan, ronaldoussoren
Date 2013-08-03.00:13:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375488806.64.0.934325813706.issue18416@psf.upfronthosting.co.za>
In-reply-to
Content
PathFinder or FileFinder?  Changing PathFinder._path_importer_cache(cls, path) seems to fix the issue.

See line 1302 in _bootstrap.py.

         if path == '':
-            path = '.'
+            path = _os.getcwd()


$ touch blah.py; ./python -c "import blah; print(blah.__file__)"
/home/mmay/cpython/blah.py
History
Date User Action Args
2013-08-03 00:13:27madison.maysetrecipients: + madison.may, brett.cannon, ronaldoussoren, ncoghlan, Arfrever
2013-08-03 00:13:26madison.maysetmessageid: <1375488806.64.0.934325813706.issue18416@psf.upfronthosting.co.za>
2013-08-03 00:13:26madison.maylinkissue18416 messages
2013-08-03 00:13:26madison.maycreate