Legal_Doc / zip_test.py
Hyma Roshini Gompa
Initial commit for Streamlit app
52742d2
raw
history blame contribute delete
326 Bytes
import zipfile
import os
zipf = zipfile.ZipFile('app_bundle.zip', 'w', zipfile.ZIP_DEFLATED)
for root, dirs, files in os.walk('.'):
for file in files:
if file != 'app_bundle.zip':
zipf.write(os.path.join(root, file),
os.path.relpath(os.path.join(root, file), '.'))
zipf.close()