Unable to import external script to addon default.py within plugin.video.addon folder
#7
(2020-06-16, 12:37)Roman_V_M Wrote: There shouldn't be any problems with importing modules located at the same level. As for modules in subfolders, you need either add __init__.py file to convert a subfolder to a Python package or add this subfolder explicitly to sys.path list. BTW, what are your sys.path contents when you are doing the import?
Hi @Roman_V_M, sorry for the late reply, having just tested it again I realised that what you said is correct, I am able to import from the same folder any script fine, I am not sue why I thought couldnt at the time. Thank you for your help and sorry for troubling you.
Reply


Messages In This Thread
RE: Unable to import external script to addon default.py within plugin.video.addon folder - by sshah93 - 2020-07-11, 21:14


Logout Mark Read Team Forum Stats Members Help
Unable to import external script to addon default.py within plugin.video.addon folder0
This forum uses Lukasz Tkacz MyBB addons.