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.
This commit is contained in:
Goffi 2023-12-09 14:05:02 +01:00
commit 34fa69661c

View file

@ -908,7 +908,7 @@ class LiberviaBackend(service.Service):
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))