Пример #1
0
	def build(self):
		try:
			shutil.rmtree(self.path + "/build")
		except:
			pass
		try:
			Dir.walk(self.path, self.build_file)
		except:
			pass
Пример #2
0
 def build(self):
     try:
         shutil.rmtree(self.path + "/build")
     except:
         pass
     try:
         Dir.walk(self.path, self.build_file)
     except:
         pass
Пример #3
0
    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)
Пример #4
0
    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)