2009-10-20, 17:18
I have a python script running on a python installation with lxml. How could I import the lxml to use it in a xbmc plugin?
Thanks
Thanks
LIB_DIR = xbmc.translatePath( os.path.join( os.getcwd(), 'resources', 'lib' ) )
sys.path.append (LIB_DIR)
from lxml import etree
Quote:But still, who's going to maintain those libraries, build them and make sure they they work for each platform?It's not a big deal. I have already lxml for all platforms and for python 2.4 I mean working with XBMC. Not to many libraries need it. Like i said. Most important libraries are Feedparser, BeautifulSoup and lxml (Its my opinion.) If we do it we don't need librarys in our plugins. Your and mine plugins have same Beautifulsoup library and we have total 10-12 same library installed on our harddisk.
Quote:but what happens if two plugins need two versions of the library?If your plugin need it never version, you can always add in to your plugin folder and import from there. Am I wrong?