diff --git a/muppet/gather.py b/muppet/gather.py index e8f59ce93db148a8263bfe0e59a6706fb730992a..1d3fc48e482606514838a7b6a60852ffae7c0c01 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,