only set the first run setting if it is not set

This commit is contained in:
shaun 2015-03-25 18:47:22 +11:00
parent 52d4093a44
commit a6a30cc54c
2 changed files with 24 additions and 12 deletions

View file

@ -6,8 +6,7 @@ import threading
import json
from datetime import datetime
addonSettings = xbmcaddon.Addon(id='plugin.video.mb3sync')
cwd = addonSettings.getAddonInfo('path')
cwd = xbmcaddon.Addon(id='plugin.video.mb3sync').getAddonInfo('path')
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( cwd, 'resources', 'lib' ) )
sys.path.append(BASE_RESOURCE_PATH)