[issue415492] Compiler generates relative filenames

2022-04-10 Thread admin
Change by admin : -- github: None -> 34308 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue415492] Compiler generates relative filenames

2012-06-24 Thread Brett Cannon
Brett Cannon added the comment: So co_filename is absolute in Python 3.3, but __file__ on modules is not if a relative path is used from sys.path (as Nick pointed out). Changing this would possibly break code as this has been baked into the import system for quite some time. I think Nick as s

[issue415492] Compiler generates relative filenames

2012-06-19 Thread Ramchandra Apte
Ramchandra Apte added the comment: What is the status of this bug? This is the oldest open bug. -- nosy: +ramchandra.apte ___ Python tracker ___ ___

[issue415492] Compiler generates relative filenames

2011-10-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue415492] Compiler generates relative filenames

2011-10-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Armin Ronacher
Armin Ronacher added the comment: The reason why this is a problem: $ cat test.py def foo(): pass >>> import test, os, inspect >>> os.chdir('/') >>> inspect.getsource(test) 'def foo():\npass\n' But >>> import test, os, inspect >>> os.chdir('/') >>> inspect.getsource(test) Traceback

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Nick Coghlan
Nick Coghlan added the comment: It's fairly easy to check this is still a problem: $ ./python Python 3.3.0a0 (default:a06ef7ab7321, Sep 22 2011, 13:41:29) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import setup >>