Brett Cannon <br...@python.org> added the comment:

I see your mistake now: you need to call it as __import__('pkgB', globals(), 
index=1), else __import__ has no clue how to anchor your import in the relative 
package space.

Try that and let me know if it makes it work.

And why exactly are you trying to call __import__ directly? You should be using 
importlib.import_module() for programmatic imports.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13912>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to