[Python-ideas] 'from os.path import FILE, DIR' or internal structure of filenames
ncoghlan at gmail.com
Sun Sep 29 08:15:17 CEST 2013
On 29 September 2013 13:28, INADA Naoki <songofacandy at gmail.com> wrote:
> os.path.abspath(__file__) returns wrong path after chdir.
> So I don't think abspath of module can be trivially and reliably derived
> from existing values.
Hence the part about any remaining instances of non-absolute __file__
values being considered a bug in the import system.
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas