Exemplo n.º 1
0
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
Exemplo n.º 2
0
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
Exemplo n.º 3
0
def _addModPath(path):
    if path[-1] == Settings.getFilePathSeperator():
        path = path[:-1]
    if not path in sys.path:
        sys.path.append(path)
Exemplo n.º 4
0
def setShowActions(flag):
    Settings.setShowActions(flag)
Exemplo n.º 5
0
def makeFolder(*paths):
    path = makePath(*paths)
    if not path: return None
    path = path + Settings.getFilePathSeperator()
    return path
Exemplo n.º 6
0
def getParentFolder():
    path = getParentPath()
    if not path: return None
    return path + Settings.getFilePathSeperator()
Exemplo n.º 7
0
def getBundleFolder():
    path = ImagePath.getBundlePath()
    if not path: return None
    return path + Settings.getFilePathSeperator()
Exemplo n.º 8
0
def addModPath(path):
    if path[-1] == Settings.getFilePathSeperator():
        path = path[:-1]
    if not path in sys.path:
        sys.path.append(path)
Exemplo n.º 9
0
def setShowActions(flag):
    Settings.setShowActions(flag)
Exemplo n.º 10
0
def makeFolder(*paths):
  path = makePath(*paths)
  if not path: return None
  path = path + Settings.getFilePathSeperator()
  return path
Exemplo n.º 11
0
def getParentFolder():
    path = getParentPath()
    if not path: return None
    return path + Settings.getFilePathSeperator();
Exemplo n.º 12
0
def getBundleFolder():
    path = ImagePath.getBundlePath()
    if not path: return None
    return path + Settings.getFilePathSeperator();
def updateImages():
    global _imageUpdating
    _imageUpdating = True
    SikuliSettings.setImageCache(0)