def explore(path):
if path:
if os.path.exists(path):
path = os.path.dirname(path)
platform = os_qeury()
if platform == "darwin":
subprocess.Popen(['open',path])
return True
elif platform == "win32":
os.startfile(path)
return True
log.info("File dose not exist")
return False
log.info("No file name spacified")
return False
评论列表
文章目录