Brett Cannon <[email protected]> added the comment:
> I am curious, what is `fullname` supposed to mean then? "full" in what sense?
You can still specify the full name of the module you're trying to import, but
you also need to pass in the location information for that module. So the code
does `fullname.rpartition(".")[-1]` to get the name of the module that you're
looking for. So `PathFinder.find_spec('namespace.a',
path=spec.submodule_search_locations)` should also work.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com