Use 3rd party python modules
#1
Its' possible to add a directory to python path inside XBMC? If so how can I do that?

Thanks

-- edit --

What I'm trying to do is:

I have an addon that use watchdog python module.
I have the watchdog python module installed in another directory that it's not the default one.
In my addon, I tried:
sys.path.append('directory-of-watchdog-python-module'), then I tried to import watchdog
Without success.

How can I add this module?
Reply
#2
If it's a pure python module, and it's a module which could appeal to others, then you can create an XBMC module - for example, unidecode which I maintain for my own script.

It's also possible to include a module within your script if it has limited appeal, though I can't lay my hands on any examples at the moment. If this is something you're interested in, I'm sure someone will point you in the right direction.
Reply

Logout Mark Read Team Forum Stats Members Help
Use 3rd party python modules0