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
def _addModPath(path): if path[-1] == Settings.getFilePathSeperator(): path = path[:-1] if not path in sys.path: sys.path.append(path)
def setShowActions(flag): Settings.setShowActions(flag)
def makeFolder(*paths): path = makePath(*paths) if not path: return None path = path + Settings.getFilePathSeperator() return path
def getParentFolder(): path = getParentPath() if not path: return None return path + Settings.getFilePathSeperator()
def getBundleFolder(): path = ImagePath.getBundlePath() if not path: return None return path + Settings.getFilePathSeperator()
def addModPath(path): if path[-1] == Settings.getFilePathSeperator(): path = path[:-1] if not path in sys.path: sys.path.append(path)
def getParentFolder(): path = getParentPath() if not path: return None return path + Settings.getFilePathSeperator();
def getBundleFolder(): path = ImagePath.getBundlePath() if not path: return None return path + Settings.getFilePathSeperator();
def updateImages(): global _imageUpdating _imageUpdating = True SikuliSettings.setImageCache(0)