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