text2image / unzip.py
konstantinG's picture
Upload unzip.py
96e40e3
raw
history blame
No virus
196 Bytes
import os
import zipfile
def unzip(zip_file):
if not os.path.exists('img'):
os.makedirs('img')
with zipfile.ZipFile(zip_file, 'r') as zip:
zip.extractall('img')