本文整理汇总了Python中org.sikuli.basics.Settings类的典型用法代码示例。如果您正苦于以下问题:Python Settings类的具体用法?Python Settings怎么用?Python Settings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Settings类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: makePath
def makePath(*paths):
if len(paths) == 0: return None
path = paths[0]
if len(paths) > 1:
for p in paths[1:]:
path = os.path.join(path, p)
if path[-1] == Settings.getFilePathSeperator():
return os.path.dirname(path)
return path
示例2: addModPath
def addModPath(path):
if path[-1] == Settings.getFilePathSeperator():
path = path[:-1]
if not path in sys.path:
sys.path.append(path)
示例3: setShowActions
def setShowActions(flag):
Settings.setShowActions(flag)
示例4: makeFolder
def makeFolder(*paths):
path = makePath(*paths)
if not path: return None
path = path + Settings.getFilePathSeperator()
return path
示例5: getParentFolder
def getParentFolder():
path = getParentPath()
if not path: return None
return path + Settings.getFilePathSeperator();
示例6: getBundleFolder
def getBundleFolder():
path = ImagePath.getBundlePath()
if not path: return None
return path + Settings.getFilePathSeperator();
示例7: updateImages
def updateImages():
global _imageUpdating
_imageUpdating = True
SikuliSettings.setImageCache(0)