[issue39905] Cannot load sub package having a 3-dot relative import
Mark Dickinson
report at bugs.python.org
Sun Mar 8 16:39:17 EDT 2020
Mark Dickinson <dickinsm at gmail.com> added the comment:
In this line:
> spec = spec_from_file_location("subsubpkg_rel", "/home/yon/myproj/mypkg/subpkg/subsubpkg_rel/__init__.py")
try providing the fully-qualified name, instead of just "subsubpkg_rel". That is:
> spec = spec_from_file_location("mypkg.subpkg.subsubpkg_rel", "/Users/mdickinson/Desktop/test/mypkg/subpkg/subsubpkg_rel/__init__.py")
----------
nosy: +mark.dickinson
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39905>
_______________________________________
More information about the Python-bugs-list
mailing list