Unable to import external script to addon default.py within plugin.video.addon folder
#2
The currently shipping version of Kodi is still using a Python 2.7 interpreter (the upcoming Matrix release switches to Python3).  Under Python 2.7 You must have an __init__.py file (even an empty one will work) in every directory you want treated as a module.  I'd suggest moving globals.py to resources and then putting an __init__.py file in the resources folder.  Then you should be able to do:

python:

from resources.global import *
from resources.addon_utils import *
Reply


Messages In This Thread
RE: Unable to import external script to addon default.py within plugin.video.addon folder - by pkscout - 2020-06-14, 06:48
Logout Mark Read Team Forum Stats Members Help
Unable to import external script to addon default.py within plugin.video.addon folder0