From 9d9a1ce168a41467117b84585864023cf70b8f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 1 Jul 2023 18:25:41 +0200 Subject: Ensure absolute path in glob output. A simple normalization making it easier later. --- muppet/gather.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/muppet/gather.py b/muppet/gather.py index e8f59ce..1d3fc48 100644 --- a/muppet/gather.py +++ b/muppet/gather.py @@ -29,6 +29,11 @@ class ModuleEntry: Absolute path in the filesystem where the module can be found. :param strings_output: Output of ``puppet strings``. + :param metadata: + Parsed contents of the modules ``metadata.json``. + :param doc_files: + List of absolute paths to documentation files provided by the + upstream module. """ name: str @@ -98,7 +103,7 @@ def get_module(cache: Cache, except FileNotFoundError: metadata = {} - doc_files = glob(os.path.join(path, '*.md')) + doc_files = glob(os.path.join(os.path.abspath(path), '*.md')) return ModuleEntry(name=name, path=path, -- cgit v1.2.3