Пример #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
Пример #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
Пример #3
0
def _addModPath(path):
    if path[-1] == Settings.getFilePathSeperator():
        path = path[:-1]
    if not path in sys.path:
        sys.path.append(path)
Пример #4
0
def setShowActions(flag):
    Settings.setShowActions(flag)
Пример #5
0
def makeFolder(*paths):
    path = makePath(*paths)
    if not path: return None
    path = path + Settings.getFilePathSeperator()
    return path
Пример #6
0
def getParentFolder():
    path = getParentPath()
    if not path: return None
    return path + Settings.getFilePathSeperator()
Пример #7
0
def getBundleFolder():
    path = ImagePath.getBundlePath()
    if not path: return None
    return path + Settings.getFilePathSeperator()
Пример #8
0
def addModPath(path):
    if path[-1] == Settings.getFilePathSeperator():
        path = path[:-1]
    if not path in sys.path:
        sys.path.append(path)
Пример #9
0
def setShowActions(flag):
    Settings.setShowActions(flag)
Пример #10
0
def makeFolder(*paths):
  path = makePath(*paths)
  if not path: return None
  path = path + Settings.getFilePathSeperator()
  return path
Пример #11
0
def getParentFolder():
    path = getParentPath()
    if not path: return None
    return path + Settings.getFilePathSeperator();
Пример #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)