Пример #1
0
    def default_uninstall(self, func_callback = None):
        if(func_callback != None):
            return func_callback()

        if(self.installed == True):
            if(not try_delete_path(self.app_path)):
                raise UninstallingItemDNEException
            self.installed = False
Пример #2
0
 def default_install(self, func_callback, force = False):
     self.resolveDepends()
     if(force):
         if(not try_delete_path(self.app_path)): raise FilePermissionException
         self.installed = False
     if not os.path.exists(self.app_path):
         os.makedirs(self.app_path)
         self.installed = func_callback()
     return self.installed