Tolerate failures while accessing wand.api #220
While developing an addon for Anki (for which, one needs to bundle all the dependencies), I ran into the problem that if I fetched and kept a checkout of wand in a sub-folder, it failed to import complaining that the key
Upon further investigation, it appears that
It ensures that if wand is bundled as a local package within another package, then importing wand_local_name.wand.api will not balk at not finding the module wand.api.
Feedback, comments and alternate fixes welcome.
This seems straight forward, but could you provided a little "bundling" example to demonstrate the failure? Nothing fancy -- just terminal log or something that shows module error message.
I've got a feeling that other folks that run into this issue would google-search the error-message, and not your resolution.
If I have checked out the
This is the error which was resolved, as no other part of the code depends on the name of the module being
PS: I have rebased the PR to the current master.