files.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:pipeline 作者: liorbenhorin 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号