os path
#1
Does anyone know how to discover the absolute full path that xbmc is running in ?

No matter what os or os.path func I try they all report something starting with Q:\\

What I'd like to see is:

E:\apps\xbmc


Any ideas ?
Retired from Add-on dev
Reply
#2
Not on the xbox or windows.

it's an internal mapped drive, so XBMC would have to do that.

For linux xbmc.translatePath() does. Maybe that can be enhanced to work with the xbox?

If your having issues, with os module (or maybe it was sys module) and profiles. (P:\\) you should run the path thru xbmc.translatePath() anyways, it fixes an issue, which I can't recall right now. Smile
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
issue being that P: is not recognized as a hdd drive by the python libraries
Reply
#4
I've exhausted os.path and os and sys.path funcs all with and without xbmc.translatePath() but non reveal the true absolute path.

shame.

I wanted it so I could find the parent folder of xbmc installation.

eg.
If installed to E:\\apps\somename\xbmc

hoping to be able to discover 'somename'
Retired from Add-on dev
Reply

Logout Mark Read Team Forum Stats Members Help
os path0