Message152354
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. |
|
Date |
User |
Action |
Args |
2012-01-30 22:42:25 | brett.cannon | set | recipients:
+ brett.cannon, jaraco, eric.snow |
2012-01-30 22:42:25 | brett.cannon | set | messageid: <1327963345.73.0.864227177747.issue13912@psf.upfronthosting.co.za> |
2012-01-30 22:42:25 | brett.cannon | link | issue13912 messages |
2012-01-30 22:42:25 | brett.cannon | create | |
|