Newbie python developer looking for a bit of help ...
#1
I'm great at C++ and Java, but this is my first time playing around with python. I'm especially interested in playing around with the URLResolver code (http://forum.xbmc.org/showthread.php?tid=105707). I'm wondering if someone could help me solve a very simple problem that's obvious for anyone who's done work with python before, but is causing me issues.

I'm trying to run one of the script files from the URLResolver (I added some code to actually run since most of the files are just class definitions), but I get stuck at the first import line telling me that the urlresolver package can't be found. I'm assuming there has to be some way to tell python where to look for packages. In this case the packages are in the local directory ... how do I tell it to look there?

Thanks,
Harry

P.S. This is on a ubuntu platform, not via XBMC yet.
Reply
#2
This should help:
http://www.stereoplex.com/blog/understan...pythonpath
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#3
Have you imported the libraries?

Code:
from t0mm0.common.addon import Addon
from t0mm0.common.net import Net
import urlresolver

For examples on how to use it, look at the test addons that t0mm0 has on his git repository
Reply

Logout Mark Read Team Forum Stats Members Help
Newbie python developer looking for a bit of help ...0