konstantinG commited on
Commit
8172bbb
1 Parent(s): 10c4f63

Update unzip.py

Browse files
Files changed (1) hide show
  1. unzip.py +3 -3
unzip.py CHANGED
@@ -2,11 +2,11 @@ import os
2
  import zipfile
3
 
4
  def unzip(zip_file):
5
- if not os.path.exists('img'):
6
- os.makedirs('img')
7
  print('1')
8
  with zipfile.ZipFile(zip_file, 'r') as zip:
9
- zip.extractall('img')
10
  print('2')
11
 
12
 
 
2
  import zipfile
3
 
4
  def unzip(zip_file):
5
+ if not os.path.exists('img_folder'):
6
+ os.makedirs('img_folder')
7
  print('1')
8
  with zipfile.ZipFile(zip_file, 'r') as zip:
9
+ zip.extractall('img_folder')
10
  print('2')
11
 
12