-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_setup.py
More file actions
45 lines (39 loc) · 1.12 KB
/
check_setup.py
File metadata and controls
45 lines (39 loc) · 1.12 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
# check_setup.py
import os
import importlib
FICHIERS_IMPORTANTS = [
"main.py",
"simulateur_logique.py",
"simulateur_wallet.py",
"core/defi_sources/defillama.py",
"core/profil.py",
"core/scoring.py",
"core/config.py"
]
MODULES_IMPORTS = [
"simulateur_logique",
"simulateur_wallet",
"core.defi_sources.defillama",
"core.profil",
"core.scoring",
"core.config"
]
def verifier_fichiers():
print("📁 Vérification des fichiers essentiels...")
for fichier in FICHIERS_IMPORTANTS:
if not os.path.exists(fichier):
print(f"❌ Fichier manquant : {fichier}")
else:
print(f"✅ Fichier présent : {fichier}")
def verifier_imports():
print("\n📦 Vérification des modules importables...")
for module in MODULES_IMPORTS:
try:
importlib.import_module(module)
print(f"✅ Import OK : {module}")
except ImportError as e:
print(f"❌ Import échoué : {module} → {e}")
if __name__ == "__main__":
print("🔍 Démarrage de check_setup.py\n")
verifier_fichiers()
verifier_imports()