From 5ec8770057a318b8c8863bf854014b8be5e0cac0 Mon Sep 17 00:00:00 2001 From: robweber Date: Fri, 26 Oct 2012 09:17:21 -0500 Subject: [PATCH] added method to return addon path --- resources/lib/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 652bb76..cf81268 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -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)