app.py 文件源码

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

项目:first_timer_scraper 作者: niccokunzmann 项目源码 文件源码
def get_source():
    """Download the source of this application."""
    # from http://stackoverflow.com/questions/458436/adding-folders-to-a-zip-file-using-python#6511788
    directory = tempfile.mkdtemp()
    temp_path = os.path.join(directory, APPLICATION)
    zip_path = shutil.make_archive(temp_path, "zip", HERE)
    return static_file(APPLICATION + ".zip", root=directory)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号