本文整理汇总了Python中org.sikuli.script.ImagePath类的典型用法代码示例。如果您正苦于以下问题:Python ImagePath类的具体用法?Python ImagePath怎么用?Python ImagePath使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ImagePath类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load_module
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)
示例2: getParentPath
def getParentPath():
return ImagePath.getBundleParentPath();
示例3: setBundlePath
def setBundlePath(path):
ImagePath.setBundlePath(path)
示例4: resetImagePath
def resetImagePath(path = None):
if not path:
path = getBundlePath();
ImagePath.reset(path)
示例5: removeImagePath
def removeImagePath(path):
ImagePath.remove(path)
示例6: getImagePath
def getImagePath():
return [e.pathGiven for e in ImagePath.getPaths() if e]
示例7: addImagePath
def addImagePath(path):
ImagePath.add(path)
示例8: resetImagePath
def resetImagePath(path):
ImagePath.resetImagePath(path)
示例9: getImagePath
def getImagePath():
return [e for e in ImagePath.getImagePath() if e]
示例10: getParentPath
def getParentPath():
path = ImagePath.getBundlePath()
if not path: return None
return os.path.dirname(makePath(getBundlePath()));
示例11: getBundleFolder
def getBundleFolder():
path = ImagePath.getBundlePath()
if not path: return None
return path + Settings.getFilePathSeperator();
示例12: setBundlePath
def setBundlePath(path):
return ImagePath.setBundlePath(path)