joermd commited on
Commit
1e640c2
·
verified ·
1 Parent(s): ea302e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,3 +1,9 @@
1
  import zipfile
2
- with zipfile.ZipFile("defaults.zip", "r") as zip_ref:
3
- zip_ref.extractall("joermd/speedy/main")
 
 
 
 
 
 
 
1
  import zipfile
2
+ # مسار ملف الـ zip (إذا كنت رفعته في المسار الرئيسي للمشروع)
3
+ zip_file_path = "defaults.zip" # استبدل "your_file.zip" باسم الملف الفعلي اللي رفعته
4
+
5
+ # فك الضغط في نفس المسار الرئيسي للمشروع
6
+ with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
7
+ zip_ref.extractall("./") # "./" تعني فك الملفات في نفس المجلد الرئيسي
8
+
9
+ print("تم فك ضغط الملف بنجاح في المسار الرئيسي!")