[issue20443] __code__. co_filename should always be an absolute path
Nick Coghlan
report at bugs.python.org
Fri Jun 21 07:56:15 EDT 2019
Nick Coghlan <ncoghlan at gmail.com> added the comment:
Perhaps `os._abspath_for_import`? If importlib finds it, then it can handle making early paths absolute itself, otherwise it will defer doing that until it has the full external import system bootstrapped. (importlib does try to make all paths absolute as it loads modules - it's just that some early modules aren't loaded that way)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue20443>
_______________________________________
More information about the Python-bugs-list
mailing list