[issue34444] Module's __file__ should be absolute always ("." in sys.path)

Batuhan report at bugs.python.org
Sat Dec 21 13:52:29 EST 2019


Batuhan <batuhanosmantaskaya at gmail.com> added the comment:

I am not sure about computing absolute path every time when `__file__` called. I guess it is a static thing, that get setted on the import time and never changes. What you are proposing is to compute it dynamically which IMHO isn't the best way.

----------
nosy: +BTaskaya, brett.cannon, eric.snow, ncoghlan

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34444>
_______________________________________


More information about the Python-bugs-list mailing list