本文整理汇总了Python中org.sikuli.basics.Settings.getFilePathSeperator方法的典型用法代码示例。如果您正苦于以下问题:Python Settings.getFilePathSeperator方法的具体用法?Python Settings.getFilePathSeperator怎么用?Python Settings.getFilePathSeperator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.sikuli.basics.Settings
的用法示例。
在下文中一共展示了Settings.getFilePathSeperator方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: makePath
# 需要导入模块: from org.sikuli.basics import Settings [as 别名]
# 或者: from org.sikuli.basics.Settings import getFilePathSeperator [as 别名]
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
# 需要导入模块: from org.sikuli.basics import Settings [as 别名]
# 或者: from org.sikuli.basics.Settings import getFilePathSeperator [as 别名]
def addModPath(path):
if path[-1] == Settings.getFilePathSeperator():
path = path[:-1]
if not path in sys.path:
sys.path.append(path)
示例3: makeFolder
# 需要导入模块: from org.sikuli.basics import Settings [as 别名]
# 或者: from org.sikuli.basics.Settings import getFilePathSeperator [as 别名]
def makeFolder(*paths):
path = makePath(*paths)
if not path: return None
path = path + Settings.getFilePathSeperator()
return path
示例4: getParentFolder
# 需要导入模块: from org.sikuli.basics import Settings [as 别名]
# 或者: from org.sikuli.basics.Settings import getFilePathSeperator [as 别名]
def getParentFolder():
path = getParentPath()
if not path: return None
return path + Settings.getFilePathSeperator();
示例5: getBundleFolder
# 需要导入模块: from org.sikuli.basics import Settings [as 别名]
# 或者: from org.sikuli.basics.Settings import getFilePathSeperator [as 别名]
def getBundleFolder():
path = ImagePath.getBundlePath()
if not path: return None
return path + Settings.getFilePathSeperator();