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 brett.cannon
Recipients Arfrever, brett.cannon, eric.araujo, eric.smith, eric.snow, lemburg, ncoghlan, python-dev, r.david.murray
Date 2012-04-25.02:52:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I found out why runpy was giving back an absolute file path for __file__; because pkgutil was doing that through its ImpLoader, unlike what import does by default which is just taking what path it has and appending file names (and thus not making anything absolute).

So I have simply forced runpy to make absolute paths of the files it is given. Nick, can you have a look and let me know if this fix is reasonable, or if another os.path.abspath() call is needed somewhere in runpy?
Date User Action Args
2012-04-25 02:53:19brett.cannonsetrecipients: + brett.cannon, lemburg, ncoghlan, eric.smith, eric.araujo, Arfrever, r.david.murray, python-dev, eric.snow
2012-04-25 02:53:18brett.cannonsetmessageid: <>
2012-04-25 02:53:17brett.cannonlinkissue14605 messages
2012-04-25 02:53:17brett.cannoncreate