Include python module to addon?
#1
I have working script using serial (pySerial) module. I want write addon includes this module so that users can simply download it from repository and use it. To not have to manually add the serial module to xbmc. It is a way to include python module to addon?
Reply
#2
the first thing you'll have to do is to submit pyserial as a script module to the addon repo.

once it's in the addon repo, you can use it in your addon by listing it as a requirement in your addon.xml
Code:
    <requires>
        <import addon="script.module.pyserial" version="2.8.0"/>
    </requires>

and in your python code, simply import it as usual:
Code:
import serial
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Great, Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Include python module to addon?0