python access XBMC root install directory?
#1
Hello,

Is there a variable way to access XBMC's root install directory that works without hard coded paths?

For this particular use I would like to access the addons directory, wherever it may be. The code itself is going to be running out of the addons directory too I guess

Although I am coding for linux, a universal way to do this would be ideal

Thanks
Reply
#2
do you means python inside xbmc or outside?
Reply
#3
Why do you need to be able to access the addons directory?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
jmarshall Wrote:Why do you need to be able to access the addons directory?

I want a script (or plugin) to look for other addons, and list only certain particular ones

Kind of the same way that add-on manager that lets you download new addons works
--

an alternative I would consider is to have certain addons shown in a list (with thumbnails viewable too), like in their own sub-favorites list, but it would need to be in a folder setting

I hope that makes sense, I couldn't figure out how to make subfolders in favorites, nor view favorites in a folder setting, so my next conclusion was a script to do it.
Reply
#5
Code:
xbmc.translatePath('special://home/addons')
xbmc.translatePath('special://xbmc/addons')
check here difference http://wiki.xbmc.org/?title=Special_protocol
Reply

Logout Mark Read Team Forum Stats Members Help
python access XBMC root install directory?0