Kodi Community Forum
os path - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: os path (/showthread.php?tid=29320)



os path - BigBellyBilly - 2007-10-25

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 ?


- Nuka1195 - 2007-10-25

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


- spiff - 2007-10-25

issue being that P: is not recognized as a hdd drive by the python libraries


- BigBellyBilly - 2007-10-25

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'