def install_dependency(self, plugin): from resources.libs import db dep = os.path.join(CONFIG.ADDONS, plugin, 'addon.xml') if os.path.exists(dep): match = tools.parse_dom(tools.read_from_file(dep), 'import', ret='addon') for depends in match: if 'xbmc.python' not in depends: self.progress_dialog.update(0, '\n'+'[COLOR {0}]{1}[/COLOR]'.format(CONFIG.COLOR1, depends)) try: add = tools.get_addon_by_id(id=depends) name2 = tools.get_addon_info(add, 'name') except: db.create_temp(depends) db.addon_database(depends, 1)
def install_dependency(self, plugin): from resources.libs import db if 31 - 31: I11i - i1IIi * OOooOOo / OoooooooOO iI = os.path.join(CONFIG.ADDONS, plugin, 'addon.xml') if os.path.exists(iI): o00O = tools.parse_dom(tools.read_from_file(iI), 'import', ret='addon') for OOO0OOO00oo in o00O: if 'xbmc.python' not in OOO0OOO00oo: self.progress_dialog.update( 0, '\n' + '[COLOR {0}]{1}[/COLOR]'.format( CONFIG.COLOR1, OOO0OOO00oo)) if 31 - 31: II111iiii - OOooOOo.I1i1iI1i % OoOoOO00 - O0 try: i1 = tools.get_addon_by_id(id=OOO0OOO00oo) iii11 = tools.get_addon_info(i1, 'name') except: db.create_temp(OOO0OOO00oo) db.addon_database(OOO0OOO00oo, 1) if 58 - 58: OOooOOo * i11iIiiIii / OoOoOO00 % I1i1iI1i - I1ii11iIi11i / oO0o