2020-06-13, 22:48
I am re-learning how to make Kodi addons. i have the following sample directory structure:
plugin.video.test_addon
resources
--> addon_utils.py
addon.xml
default.py
globals.py
On the default.py when ever i try either of the following commands, I get the assoicated error messages:
As you can see, my question is how do I import scripts within the my plugin.video.addon directory, as currently it is causes the above ImportErrors?
Many Thanks.
plugin.video.test_addon
resources
--> addon_utils.py
addon.xml
default.py
globals.py
On the default.py when ever i try either of the following commands, I get the assoicated error messages:
- from globals import * - ERROR: ImportError: No module named globals
- from resources.addon_utils import * - ERROR: ImportError: No module named resources.addon_utils
As you can see, my question is how do I import scripts within the my plugin.video.addon directory, as currently it is causes the above ImportErrors?
Many Thanks.