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