def build(self): try: shutil.rmtree(self.path + "/build") except: pass try: Dir.walk(self.path, self.build_file) except: pass
def load(plugin_path): try: plugin_path = Importer.module_path(plugin_path) # maybe plugin_path is module name except: pass def cb(p): if mimetypes.guess_type(p)[0] == "text/x-python": Importer.import_module_by_path(p) Dir.walk(plugin_path, cb)
def load(plugin_path): try: plugin_path = Importer.module_path( plugin_path) # maybe plugin_path is module name except: pass def cb(p): if mimetypes.guess_type(p)[0] == "text/x-python": Importer.import_module_by_path(p) Dir.walk(plugin_path, cb)