Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -124,11 +124,11 @@ def process_directory(directory):
|
|
124 |
code_partial_paths = ['kadi_apy/lib/resources/']
|
125 |
|
126 |
|
127 |
-
|
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
|