Diff of /script.bootable.disk.wizard/default.py [440b39] .. [24620a] Maximize Restore

  Switch to side-by-side view

--- a/script.bootable.disk.wizard/default.py
+++ b/script.bootable.disk.wizard/default.py
@@ -24,19 +24,21 @@
 import os
 import xbmcaddon
 
-BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'resources', 'lib' ) )
-sys.path.append (BASE_RESOURCE_PATH)
 
 __scriptname__ = "Bootable Disk Wizard"
-__author__ = "Team XBMC"
-__GUI__    = "ronie"
-__settings__ = xbmcaddon.Addon(id='script.bootable.disk.wizard')
-__language__ = __settings__.getLocalizedString
-__version__  = __settings__.getAddonInfo('version')
+__author__     = "Team XBMC"
+__GUI__        = "ronie"
+__settings__   = xbmcaddon.Addon(id='script.bootable.disk.wizard')
+__language__   = __settings__.getLocalizedString
+__version__    = __settings__.getAddonInfo('version')
+__cwd__        = __settings__.getAddonInfo('path')
+
+BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( __cwd__, 'resources', 'lib' ) )
+sys.path.append (BASE_RESOURCE_PATH)
 
 if ( __name__ == "__main__" ):
     import gui
-    ui = gui.GUI( "script-Bootable-Disk-Wizard.xml" , os.getcwd(), "Default")
+    ui = gui.GUI( "script-Bootable-Disk-Wizard.xml" , __cwd__, "Default")
     ui.doModal()
     del ui
     sys.modules.clear()