Update engineers/deformes7D.py
Browse files- engineers/deformes7D.py +8 -6
engineers/deformes7D.py
CHANGED
|
@@ -2,12 +2,11 @@
|
|
| 2 |
#
|
| 3 |
# Copyright (C) 2025 Carlos Rodrigues dos Santos
|
| 4 |
#
|
| 5 |
-
# Version: 3.1.
|
| 6 |
#
|
| 7 |
# This file defines the Deformes7DEngine, the unified production specialist.
|
| 8 |
-
# This version
|
| 9 |
-
#
|
| 10 |
-
# cinematic motion decisions to the new Deformes3DThinker.
|
| 11 |
|
| 12 |
import os
|
| 13 |
import time
|
|
@@ -22,6 +21,7 @@ import gc
|
|
| 22 |
import shutil
|
| 23 |
from pathlib import Path
|
| 24 |
from typing import List, Tuple, Dict
|
|
|
|
| 25 |
|
| 26 |
from aduc_types import LatentConditioningItem
|
| 27 |
from managers.ltx_manager import ltx_manager_singleton
|
|
@@ -250,10 +250,12 @@ class Deformes7DEngine:
|
|
| 250 |
|
| 251 |
# --- Singleton Instantiation ---
|
| 252 |
try:
|
| 253 |
-
|
|
|
|
|
|
|
| 254 |
config = yaml.safe_load(f)
|
| 255 |
WORKSPACE_DIR = config['application']['workspace_dir']
|
| 256 |
deformes7d_engine_singleton = Deformes7DEngine(workspace_dir=WORKSPACE_DIR)
|
| 257 |
except Exception as e:
|
| 258 |
-
logger.error(f"Could not initialize Deformes7DEngine: {e}", exc_info=True)
|
| 259 |
deformes7d_engine_singleton = None
|
|
|
|
| 2 |
#
|
| 3 |
# Copyright (C) 2025 Carlos Rodrigues dos Santos
|
| 4 |
#
|
| 5 |
+
# Version: 3.1.1
|
| 6 |
#
|
| 7 |
# This file defines the Deformes7DEngine, the unified production specialist.
|
| 8 |
+
# This version includes a robust path fix for loading the main config.yaml,
|
| 9 |
+
# ensuring the singleton can be initialized correctly from any context.
|
|
|
|
| 10 |
|
| 11 |
import os
|
| 12 |
import time
|
|
|
|
| 21 |
import shutil
|
| 22 |
from pathlib import Path
|
| 23 |
from typing import List, Tuple, Dict
|
| 24 |
+
import yaml
|
| 25 |
|
| 26 |
from aduc_types import LatentConditioningItem
|
| 27 |
from managers.ltx_manager import ltx_manager_singleton
|
|
|
|
| 250 |
|
| 251 |
# --- Singleton Instantiation ---
|
| 252 |
try:
|
| 253 |
+
# Build a robust path to the config file in the project's root
|
| 254 |
+
config_path = Path(__file__).resolve().parent.parent / "config.yaml"
|
| 255 |
+
with open(config_path, 'r') as f:
|
| 256 |
config = yaml.safe_load(f)
|
| 257 |
WORKSPACE_DIR = config['application']['workspace_dir']
|
| 258 |
deformes7d_engine_singleton = Deformes7DEngine(workspace_dir=WORKSPACE_DIR)
|
| 259 |
except Exception as e:
|
| 260 |
+
logger.error(f"Could not initialize Deformes7DEngine from {config_path}: {e}", exc_info=True)
|
| 261 |
deformes7d_engine_singleton = None
|