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)
评论列表
文章目录