def load_module(self, module_name): if _debug(): print "SikuliLoader.load_module", module_name, self.path module_name = _stripPackagePrefix(module_name) if ImagePath.add(self.path): if _debug(): print "SikuliLoader.load_module: ImagePath add:", self.path else: if _debug(): print "SikuliLoader.load_module: ImagePath not added:", self.path return None Sikuli._addModPath(self.path) return self._load_module(module_name)
def addImagePath(path): ImagePath.add(path)