forked from vikjon0/script.linux.nm
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.py
More file actions
23 lines (18 loc) · 692 Bytes
/
default.py
File metadata and controls
23 lines (18 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import sys
import os
import xbmc
import xbmcaddon
__addon__ = xbmcaddon.Addon()
__version__ = __addon__.getAddonInfo('version')
__id__ = __addon__.getAddonInfo('id')
__language__ = __addon__.getLocalizedString
__cwd__ = __addon__.getAddonInfo('path')
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( __cwd__, 'resources', 'lib' ) )
sys.path.append (BASE_RESOURCE_PATH)
print "[SCRIPT] '%s: version %s' initialized!" % (__id__, __version__, )
if (__name__ == "__main__"):
import gui
## To do - chnage name of xml (skins /default)
ui = gui.GUI( "script_linux_nm-main.xml" , __cwd__ , "default",msg='', first=True)
del ui
sys.modules.clear()