runtime_env.py 文件源码

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

项目:icnn 作者: locuslab 项目源码 文件源码
def run(main, outdir):
    script = os.path.abspath(sys.modules['__main__'].__file__)
    scriptdir, scriptfile = os.path.split(script)

    if not os.path.exists(outdir):
        os.makedirs(outdir)

    print("outdir: " + outdir)

    if FLAGS.copy:
        shutil.copytree(run_folder, path, symlinks=True, ignore=shutil.ignore_patterns('.*'))

    Executor(main, outdir).execute()


# register clean up before anybody else does
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号