http://wiki.xbmc.org/?title=HOW-TO_write_Python_Scripts
Quote:Code:
Root = os.getcwd().replace(";","")+"\\"
The Above line will return a folder so its like q:\\scripts\\GoogleScript\\ or where ever the script is located
However, this (and a lot of other XBMC voodoo) breaks if you use the system Python installation, which I was. There are a few threads on the issue, and the concensus seems to be that making things work with an external Python interpreter is a long term goal. Short term though, doing so will break a lot of scripts.
For Bootsy, you might want to check this thread for discussion on how to get the plugin path in a way that works even with an external Python:
http://forum.xbmc.org/showthread.php?tid=59208
For any non-developers, the current status is that the built-in interpreter is required and using the external one is a future feature (at least if you want all plugins and scripts to work).

or gayforit

Search
Help