added method to return addon path

This commit is contained in:
robweber 2012-10-26 09:17:21 -05:00
parent 4749978adb
commit 5ec8770057

View File

@ -7,6 +7,9 @@ __Addon = xbmcaddon.Addon(__addon_id__)
def data_dir():
return __Addon.getAddonInfo('profile')
def addon_dir():
return __Addon.getAddonInfo('path')
def log(message,loglevel=xbmc.LOGNOTICE):
xbmc.log(encode(__addon_id__ + ": " + message),level=loglevel)