diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-07-01 18:25:41 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-07-01 18:28:05 +0200 |
commit | 9d9a1ce168a41467117b84585864023cf70b8f38 (patch) | |
tree | 435e29ae68c3605db1581b2328d43d531fee07e1 | |
parent | Tag all operators as operators. (diff) | |
download | muppet-strings-9d9a1ce168a41467117b84585864023cf70b8f38.tar.gz muppet-strings-9d9a1ce168a41467117b84585864023cf70b8f38.tar.xz |
Ensure absolute path in glob output.
A simple normalization making it easier later.
-rw-r--r-- | muppet/gather.py | 7 |
1 files changed, 6 insertions, 1 deletions
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, |