From 7a8b3d3c6fdb8888e8616524cc29edba3574af43 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 26 Sep 2022 14:09:20 +0200 Subject: [PATCH] meta: ensure we have an absolute path for Index Ensure that we always have an absolute path so that all paths in `ModuleInfo` and `RunnerInfo` are absolute as well. --- osbuild/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbuild/meta.py b/osbuild/meta.py index ac5173b5..fb23d73e 100644 --- a/osbuild/meta.py +++ b/osbuild/meta.py @@ -534,7 +534,7 @@ class Index: """ def __init__(self, path: str): - self.path = path + self.path = os.path.abspath(path) self._module_info: Dict[Tuple[str, Any], Any] = {} self._format_info: Dict[Tuple[str, Any], Any] = {} self._schemata: Dict[Tuple[str, Any, str], Schema] = {}