def load_module(self, module_name):
     if _debug(): print "SikuliLoader.load_module", module_name, self.path
     module_name = _stripPackagePrefix(module_name)
     p = ImageLocator.addImagePath(self.path)
     if not p: return None
     Sikuli.addModPath(p)
     return self._load_module(module_name)
Exemple #2
0
 def load_module(self, module_name):
    #print "SikuliLoader.load_module", module_name, self.path
    module_name = _stripPackagePrefix(module_name)
    p = ImageLocator.addImagePath(self.path)
    #print "SikuliLoader.load_module: ImageLocator returned path:", p
    if not p: return None
    Sikuli.addModPath(p)
    return self._load_module(module_name)
 def load_module(self, module_name):
     if _debug():
         print "SikuliLoader.load_module", module_name, self.path
     module_name = _stripPackagePrefix(module_name)
     p = ImageLocator.addImagePath(self.path)
     if not p: return None
     Sikuli.addModPath(p)
     return self._load_module(module_name)
Exemple #4
0
 def load_module(self, module_name):
     #print "SikuliLoader.load_module", module_name, self.path
     module_name = _stripPackagePrefix(module_name)
     p = ImageLocator.addImagePath(self.path)
     #print "SikuliLoader.load_module: ImageLocator returned path:", p
     if not p: return None
     Sikuli.addModPath(p)
     return self._load_module(module_name)
 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)
Exemple #6
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)