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(*args):
    if (len(args) == 1):
        return ImagePath.append(args[0])
    elif (len(args) == 2):
        return ImagePath.append(args[0], args[1])
    return None
Exemplo n.º 4
0
def getBundleFolder():
    path = ImagePath.getBundlePath()
    if not path: return None
    return path + Settings.getFilePathSeperator()
Exemplo n.º 5
0
def setBundlePath(path=None):
    return ImagePath.setBundlePath(path)
Exemplo n.º 6
0
def removeImagePath(path):
    ImagePath.remove(path)
Exemplo n.º 7
0
def addImagePath(path):
    ImagePath.add(path)
Exemplo n.º 8
0
def setBundlePath(path):
    ImagePath.setBundlePath(path)
Exemplo n.º 9
0
def removeImagePath(path):
    ImagePath.remove(path)
Exemplo n.º 10
0
def setBundlePath(path):
    return ImagePath.setBundlePath(path)
Exemplo n.º 11
0
def checkImage(image):
    return ImagePath.check(image)
Exemplo n.º 12
0
def removeJarImagePath(*args):
    if (len(args) == 1):
        return ImagePath.removeJar(args[0])
    elif (len(args) == 2):
        return ImagePath.removeJar(args[0], args[1])
    return None
Exemplo n.º 13
0
def removeHTTPImagePath(arg):
    return ImagePath.removeHTTP(arg)
Exemplo n.º 14
0
def addJarImagePath(*args):
    if (len(args) == 1):
        return ImagePath.addJar(args[0])
    elif (len(args) == 2):
        return ImagePath.addJar(args[0], args[1])
    return None
Exemplo n.º 15
0
def addHTTPImagePath(arg):
    return ImagePath.addHTTP(arg)
Exemplo n.º 16
0
def addImagePath(path):
    ImagePath.add(path)
Exemplo n.º 17
0
def getImagePath():
    return [e.pathGiven for e in ImagePath.getPaths() if e]
Exemplo n.º 18
0
def getBundleFolder():
    path = ImagePath.getBundlePath()
    if not path: return None
    return path + Settings.getFilePathSeperator();
Exemplo n.º 19
0
def resetImagePath(path = None):
    if not path:
      path = getBundlePath();
    ImagePath.reset(path)
Exemplo n.º 20
0
def getParentPath():
    path = ImagePath.getBundlePath()
    if not path: return None
    return os.path.dirname(makePath(getBundlePath()));
Exemplo n.º 21
0
def getParentPath():
    return ImagePath.getBundleParentPath();
Exemplo n.º 22
0
def getImagePath():
    return [e.pathGiven for e in ImagePath.getPaths() if e]
Exemplo n.º 23
0
def getImagePath():
    return [e for e in ImagePath.get()]
Exemplo n.º 24
0
def resetImagePath(path=None):
    if not path:
        path = getBundlePath()
    ImagePath.reset(path)
Exemplo n.º 25
0
def resetImagePath(path=None):
    ImagePath.reset(path)
Exemplo n.º 26
0
def setBundlePath(path):
    ImagePath.setBundlePath(path)
Exemplo n.º 27
0
def getBundlePath():
    return ImagePath.getBundlePath()
Exemplo n.º 28
0
def getImagePath():
    return [e for e in ImagePath.getImagePath() if e]
Exemplo n.º 29
0
def getParentPath():
    path = ImagePath.getBundlePath()
    if not path: return None
    return os.path.dirname(makePath(getBundlePath()))
Exemplo n.º 30
0
def resetImagePath(path):
    ImagePath.resetImagePath(path)