Kodi Community Forum
can't import installed addon with xbmc.python.module as extension point - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: can't import installed addon with xbmc.python.module as extension point (/showthread.php?tid=372247)



can't import installed addon with xbmc.python.module as extension point - Termo - 2023-02-26

I would like to import and use some features of "Cron for Kodi", and in the addon.xml it has the
xml:
<extension point="xbmc.python.module" library="resources/lib" />
correct as far as I can see.
https://github.com/robweber/cronxbmc/blob/4ec63699baabf44367bc255e9665f4cd7f455e2a/addon.xml#L12

Yet still it is not in my sys.path in kodi?!? Any idea, to why I can not see this installed addon in my sys.path?


RE: can't import installed addon with xbmc.python.module as extension point - jbinkley60 - 2023-02-27

(2023-02-26, 23:33)Termo Wrote: I would like to import and use some features of "Cron for Kodi", and in the addon.xml it has the
xml:
<extension point="xbmc.python.module" library="resources/lib" />
correct as far as I can see.
https://github.com/robweber/cronxbmc/blob/4ec63699baabf44367bc255e9665f4cd7f455e2a/addon.xml#L12

Yet still it is not in my sys.path in kodi?!? Any idea, to why I can not see this installed addon in my sys.path?

I looked on the Git repo and the addon id is service.cronxbmc .  You should be able to add the line:

  <requires>
    <import addon="service.cronxbmc"/>
  </requires>   

in your addon.xml requires section to import it into your addon.


Thanks,

Jeff


RE: can't import installed addon with xbmc.python.module as extension point - scott967 - 2023-02-28

Agree.  I think only the <requires> element in your addon.xml causes kodi to add the library path to your sys.path.

scott s.
.