Fix chemins hardcodés : utiliser BASE_DIR = Path(__file__).parent
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -10,11 +10,12 @@ from pathlib import Path
|
|||||||
from slixmpp import ClientXMPP
|
from slixmpp import ClientXMPP
|
||||||
import paho.mqtt.client as mqtt
|
import paho.mqtt.client as mqtt
|
||||||
|
|
||||||
sys.path.insert(0, "/opt/agent2_ansible")
|
BASE_DIR = Path(__file__).parent.resolve()
|
||||||
|
sys.path.insert(0, str(BASE_DIR))
|
||||||
from skills.loader import load_skills, run_skills
|
from skills.loader import load_skills, run_skills
|
||||||
|
|
||||||
# ── CONFIG ───────────────────────────────────────────────────────────────
|
# ── CONFIG ───────────────────────────────────────────────────────────────
|
||||||
CONFIG_DIR = Path("/opt/agent2_ansible/config")
|
CONFIG_DIR = BASE_DIR / "config"
|
||||||
CONFIG_FILE = CONFIG_DIR / "config.json"
|
CONFIG_FILE = CONFIG_DIR / "config.json"
|
||||||
PROMPT_FILE = CONFIG_DIR / "system_prompt.txt"
|
PROMPT_FILE = CONFIG_DIR / "system_prompt.txt"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user