-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (38 loc) · 2.13 KB
/
Copy pathsetup.py
File metadata and controls
48 lines (38 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import os
def setup_test_environment():
# הנתיב לתיקיית המעבדה שלנו
test_dir = r"D:\ai_filter_test"
# יוצר את התיקייה (אם היא כבר קיימת, הוא לא ידרוס אותה)
os.makedirs(test_dir, exist_ok=True)
# רשימת הקבצים שנייצר והתוכן שלהם
files_to_create = {
# קוד מקור ולוגיקה
"main.cpp": "#include <iostream>\n\nint main() {\n std::cout << \"Game Engine Start\";\n return 0;\n}\n",
"utils.c": "#include <stdio.h>\n\nvoid util_func() { printf(\"Utility running\\n\"); }\n",
"auth_middleware.py": "def verify_token(token):\n return token == 'Bearer 12345'\n",
# סודות והגדרות רגישות
"Supabase_API_Keys.txt": "SUPABASE_URL=https://xyz.supabase.co\nSUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5c...\n",
"database_config.json": "{\n \"db_host\": \"aws.production.db\",\n \"db_port\": 5432,\n \"db_user\": \"admin\"\n}\n",
".env.local": "SECRET_JWT_KEY=SuperSecretCyber2026!\nAPI_TOKEN=token_abc123\n",
# טקסט כללי
"readme.md": "# Project OpenClaw\nWelcome to the development environment.\n",
"TODO_list.txt": "1. Fix auth bug\n2. Encrypt database keys\n3. Render new logo\n",
# קבצים בינאריים/מדיה (נייצר אותם כקבצים ריקים)
"compiled_engine.exe": None,
"game_assets.zip": None,
"logo_draft.png": None
}
# יצירת הקבצים בפועל
for filename, content in files_to_create.items():
filepath = os.path.join(test_dir, filename)
if content is None:
# יצירת קובץ בינארי ריק
with open(filepath, 'wb') as f:
f.write(b"")
else:
# יצירת קובץ טקסט עם תוכן
with open(filepath, 'w', encoding='utf-8') as f:
f.write(content)
print(f"✅ Successfully created {len(files_to_create)} files in {test_dir}")
if __name__ == "__main__":
setup_test_environment()