From e31f429c17041e62694f4c0be25151286dd33e7a Mon Sep 17 00:00:00 2001 From: sylvain Date: Sat, 7 Mar 2026 21:32:09 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20chemins=20hardcod=C3=A9s=20:=20utiliser?= =?UTF-8?q?=20BASE=5FDIR=20=3D=20Path(=5F=5Ffile=5F=5F).parent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- agent2_debian13.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agent2_debian13.py b/agent2_debian13.py index 126aaad..0a5dbf8 100644 --- a/agent2_debian13.py +++ b/agent2_debian13.py @@ -10,11 +10,12 @@ from pathlib import Path from slixmpp import ClientXMPP import paho.mqtt.client as mqtt -sys.path.insert(0, "/opt/agent2_debian13") +BASE_DIR = Path(__file__).parent.resolve() +sys.path.insert(0, str(BASE_DIR)) from skills.loader import load_skills, run_skills # ── CONFIG ─────────────────────────────────────────────────────────────── -CONFIG_DIR = Path("/opt/agent2_debian13/config") +CONFIG_DIR = BASE_DIR / "config" CONFIG_FILE = CONFIG_DIR / "config.json" PROMPT_FILE = CONFIG_DIR / "system_prompt.txt"