Hello, I am new here. I am trying to code a add-on to run Tribler in the background to get resources.
I am quite confused about importing modules from another add-on.
I name put the origin tribler program under script.tribler/lib, and write <extension point=”xbmc.python.module” library=”lib” /> in addon.xml
From the add-on I am coding, I put <import addon=”script.tribler” version=”0.0.1″/> in the xml and try import it from the script. It cannot find the module whether I import tribler or import lib.tribler
What is more, as twisted is a dependency of Tribler, I wirte <import addon=”script.module.twisted” version=”13.2.0″/> in addon.xml, but it isn’t installed automatically.
My question is:
1. What is the correct way to import something from another addon
2. How to use the official libraries like twisted or zope.interface
3. When I import twisted in my code, does kodi try to find it in the add-on folder or in my python directory
Thx a lot for any help.