def find_module(self, module_name, package_path): if _debug(): print "SikuliImporter.find_module", module_name, package_path module_name = _stripPackagePrefix(module_name) if module_name[0:1] == "*": return None if package_path: paths = package_path else: paths = sys.path for path in paths: mod = self._find_module(module_name, path) if mod: return mod if Sikuli.load(module_name +".jar"): Debug.log(2,module_name + ".jar loaded") return None return None
def find_module(self, module_name, package_path): #print "SikuliImporter.find_module", module_name, package_path module_name = _stripPackagePrefix(module_name) if module_name[0:1] == "*": return None if package_path: paths = package_path else: paths = sys.path for path in paths: mod = self._find_module(module_name, path) if mod: return mod if Sikuli.load(module_name + ".jar"): Debug.log(2, module_name + ".jar loaded") return None return None
def find_module(self, module_name, package_path): #print "SikuliImporter.find_module", module_name, package_path module_name = _stripPackagePrefix(module_name) if package_path: paths = package_path else: paths = sys.path if not "." in paths: paths.append(".") for path in paths: mod = self._find_module(module_name, path) if mod: return mod if Sikuli.load(module_name + ".jar"): Debug.info(module_name + ".jar loaded") return None return None
def find_module(self, module_name, package_path): # print "SikuliImporter.find_module", module_name, package_path module_name = _stripPackagePrefix(module_name) if package_path: paths = package_path else: paths = sys.path if not "." in paths: paths.append(".") for path in paths: mod = self._find_module(module_name, path) if mod: return mod if Sikuli.load(module_name + ".jar"): Debug.info(module_name + ".jar loaded") return None return None