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.
This commit is contained in:
Christian Kellner 2022-09-26 14:09:20 +02:00
parent e923f559ab
commit 7a8b3d3c6f

View file

@ -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] = {}