Hotfix: fix path to memory_maintenance.md

This commit is contained in:
Michael Panchenko committed 2026-05-18 23:07:46 +03:00
1 parent 1c5cf3486e
commit cbfe68a4cd
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -61,6 +61,9 @@ class SerenaPaths:
home_dir = str(Path.home() / SERENA_MANAGED_DIR_NAME)
else:
home_dir = home_dir.strip()
self.serena_pkg_path = Path(__file__).parent.parent.resolve()
self.serena_resources_path = self.serena_pkg_path / "resources"
self.serena_user_home_dir: str = home_dir
"""
the path to the Serena home directory, where the user's configuration/data is stored.
+1 -1
View File
@@ -84,7 +84,7 @@ class MemoryManager:
return cls._MEMORY_REF_PREFIX + name
MEMORY_MAINTENANCE_NAME: str = "memory_maintenance"
_MEMORY_MAINTENANCE_TEMPLATE_PATH: Path = Path(__file__).parent / "resources" / "memory_maintenance.md"
_MEMORY_MAINTENANCE_TEMPLATE_PATH: Path = SerenaPaths().serena_resources_path / "memory_maintenance.md"
def ensure_memory_maintenance_memory(self) -> str:
"""