message achoix

This commit is contained in:
gpatruno
2025-07-20 03:33:48 +02:00
parent 9725cd7a7c
commit 75d9a65cc4
15 changed files with 272 additions and 47 deletions
+14
View File
@@ -8,6 +8,20 @@ import sys
import subprocess
import argparse
# Configurer l'environnement Python pour l'interface web
def setup_environment():
"""Configurer l'environnement Python"""
# Ajouter le chemin de l'environnement virtuel au PYTHONPATH
venv_path = os.path.join(os.path.dirname(__file__), 'env', 'lib', 'python3.10', 'site-packages')
if venv_path not in sys.path:
sys.path.insert(0, venv_path)
print(f"✓ Environnement Python configuré: {venv_path}")
# Ajouter le répertoire courant au PYTHONPATH
current_dir = os.path.dirname(__file__)
if current_dir not in sys.path:
sys.path.insert(0, current_dir)
def check_dependencies():
"""Vérifier que les dépendances sont installées"""
try: