Fix primitive_lib_dir path resolution for sexp files in app root
Some checks are pending
GPU Worker CI/CD / test (push) Waiting to run
GPU Worker CI/CD / deploy (push) Blocked by required conditions

This commit is contained in:
giles
2026-02-04 09:54:07 +00:00
parent 1442216a15
commit 234fbdbee2

View File

@@ -74,7 +74,13 @@ class StreamInterpreter:
self.primitives: Dict[str, Any] = {} self.primitives: Dict[str, Any] = {}
self.effects: Dict[str, dict] = {} self.effects: Dict[str, dict] = {}
self.macros: Dict[str, dict] = {} self.macros: Dict[str, dict] = {}
self.primitive_lib_dir = self.sexp_dir.parent / "sexp_effects" / "primitive_libs" # Try multiple locations for primitive_libs
possible_paths = [
self.sexp_dir.parent / "sexp_effects" / "primitive_libs", # recipes/ subdir
self.sexp_dir / "sexp_effects" / "primitive_libs", # app root
Path(__file__).parent.parent / "sexp_effects" / "primitive_libs", # relative to interpreter
]
self.primitive_lib_dir = next((p for p in possible_paths if p.exists()), possible_paths[0])
self.frame_pipeline = None self.frame_pipeline = None