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 kgabor79, r.david.murray, yselivanov
Date 2014-01-29.23:42:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391038979.23.0.108144785527.issue15931@psf.upfronthosting.co.za>
In-reply-to
Content
Hm, maybe just for the imports? This simple script, run it directly:

test.py:

   def foo(): pass
   print(foo.__code__.co_filename)

"$ python3.4 test.py" will still print relative path "test.py".

Hence, if you do 'os.chdir' in the above script, the introspection code will break.  There are many similar issues on the tracker, btw.
History
Date User Action Args
2014-01-29 23:42:59yselivanovsetrecipients: + yselivanov, r.david.murray, kgabor79
2014-01-29 23:42:59yselivanovsetmessageid: <1391038979.23.0.108144785527.issue15931@psf.upfronthosting.co.za>
2014-01-29 23:42:59yselivanovlinkissue15931 messages
2014-01-29 23:42:59yselivanovcreate