changeset 4179:3b95704ab777

core: fix path in `get_local_path`: `local_dir` was not used in final path, resulting in workind dir used instead or actual local path.
author Goffi <goffi@goffi.org>
date Sat, 09 Dec 2023 14:05:02 +0100 (12 months ago)
parents cf0ea77f9537
children b86912d3fd33
files libervia/backend/core/main.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/core/main.py	Tue Dec 05 13:39:03 2023 +0100
+++ b/libervia/backend/core/main.py	Sat Dec 09 14:05:02 2023 +0100
@@ -908,7 +908,7 @@
         local_dir = self.memory.config_get("", "local_dir")
         if not local_dir:
             raise exceptions.InternalError("local_dir must be set")
-        path_elts = []
+        path_elts = [local_dir]
         if component:
             path_elts.append(C.COMPONENTS_DIR)
         path_elts.append(regex.path_escape(dir_name))