bupa1018 commited on
Commit
1bf0d16
·
1 Parent(s): dd28b48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -124,11 +124,11 @@ def process_directory(directory):
124
  code_partial_paths = ['kadi_apy/lib/resources/']
125
 
126
 
127
- zip_file_path = next((file for file in os.listdir(directory) if file.endswith('.zip')), None)
128
-
 
 
129
  # zip_file_path = os.listdir(directory) if file.endswith('.zip')
130
- print(zip_file_path)
131
-
132
 
133
  with tempfile.TemporaryDirectory() as tmpdirname:
134
  # Unzip the file into the temporary directory
 
124
  code_partial_paths = ['kadi_apy/lib/resources/']
125
 
126
 
127
+ zip_file = next((file for file in os.listdir(directory) if file.endswith('.zip')), None)
128
+ print("zip_file:", zip_file)
129
+ zip_file_path = os.path.join(directory, zip_file)
130
+ print("zip_file_path:", zip_file_path)
131
  # zip_file_path = os.listdir(directory) if file.endswith('.zip')
 
 
132
 
133
  with tempfile.TemporaryDirectory() as tmpdirname:
134
  # Unzip the file into the temporary directory