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 yselivanov
Recipients r.david.murray, yselivanov
Date 2014-01-30.02:15:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There are many issues on tracker related to the relative paths in co_filename. Most of them are about introspection functions in inspect module--which are usually broken after 'os.chdir'. 

Test case: create a file

   def foo(): pass

Execute it with '$ python' -> it will print ''.

Ideally, when executing a python file, interpreter should expand all relative paths for __file__ and __code__.co_filename attributes.
Date User Action Args
2014-01-30 02:15:15yselivanovsetrecipients: + yselivanov, r.david.murray
2014-01-30 02:15:15yselivanovsetmessageid: <>
2014-01-30 02:15:15yselivanovlinkissue20443 messages
2014-01-30 02:15:15yselivanovcreate