[issue39905] Cannot load sub package having a 3-dot relative import

2020-03-09 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue39905] Cannot load sub package having a 3-dot relative import

2020-03-08 Thread Mark Dickinson
Mark Dickinson 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.su

[issue39905] Cannot load sub package having a 3-dot relative import

2020-03-08 Thread Yon Ar Chall
New submission from Yon Ar Chall : Hi there ! I was trying to use importlib.util.spec_from_file_location() to import a nested package containing a 3-dot relative import. $ tree ~/myproj /home/yon/myproj └── mypkg ├── __init__.py └── subpkg ├── __init__.py ├── subsubpkg_