Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
def addImagePath(path):
    ImagePath.add(path)
Exemplo n.º 4
0
def addImagePath(path):
    ImagePath.add(path)