message achoix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user