diff libervia/backend/core/main.py @ 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
parents 02f0adc745c6
children 730f542e4ad0
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))