Message209694
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. |
|
Date |
User |
Action |
Args |
2014-01-29 23:42:59 | yselivanov | set | recipients:
+ yselivanov, r.david.murray, kgabor79 |
2014-01-29 23:42:59 | yselivanov | set | messageid: <1391038979.23.0.108144785527.issue15931@psf.upfronthosting.co.za> |
2014-01-29 23:42:59 | yselivanov | link | issue15931 messages |
2014-01-29 23:42:59 | yselivanov | create | |
|