# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with XBMC; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # http://www.gnu.org/copyleft/gpl.html # import utils import xbmc import os utils.VerifyKeymaps() utils.verifyPlugins() utils.verifyLocation() if utils.ADDON.getSetting('AUTOSTART') == 'true': utils.LaunchSF() def checkDisabled(): try: if xbmc.getCondVisibility('System.HasAddon(%s)' % utils.ADDONID) == 0: utils.DeleteKeymap(utils.KEYMAP_HOT) utils.DeleteKeymap(utils.KEYMAP_MENU) return True except: return False
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with XBMC; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # http://www.gnu.org/copyleft/gpl.html # import utils import xbmc import os utils.VerifyZipFiles() utils.VerifyKeymaps() utils.verifyPlugins() utils.verifyLocation() if utils.ADDON.getSetting('AUTOSTART') == 'true': utils.LaunchSF() def checkDisabled(): try: if xbmc.getCondVisibility('System.HasAddon(%s)' % utils.ADDONID) == 0: utils.DeleteKeymap(utils.KEYMAP_HOT) utils.DeleteKeymap(utils.KEYMAP_MENU) return True except: return False