Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
muppet-strings
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Hörnquist
muppet-strings
Commits
9d9a1ce1
Commit
9d9a1ce1
authored
Jul 1, 2023
by
Hugo Hörnquist
Browse files
Options
Downloads
Patches
Plain Diff
Ensure absolute path in glob output.
A simple normalization making it easier later.
parent
66608694
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
muppet/gather.py
+6
-1
6 additions, 1 deletion
muppet/gather.py
with
6 additions
and
1 deletion
muppet/gather.py
+
6
−
1
View file @
9d9a1ce1
...
@@ -29,6 +29,11 @@ class ModuleEntry:
...
@@ -29,6 +29,11 @@ class ModuleEntry:
Absolute path in the filesystem where the module can be found.
Absolute path in the filesystem where the module can be found.
:param strings_output:
:param strings_output:
Output of ``puppet strings``.
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
name
:
str
...
@@ -98,7 +103,7 @@ def get_module(cache: Cache,
...
@@ -98,7 +103,7 @@ def get_module(cache: Cache,
except
FileNotFoundError
:
except
FileNotFoundError
:
metadata
=
{}
metadata
=
{}
doc_files
=
glob
(
os
.
path
.
join
(
path
,
'
*.md
'
))
doc_files
=
glob
(
os
.
path
.
join
(
os
.
path
.
abspath
(
path
)
,
'
*.md
'
))
return
ModuleEntry
(
name
=
name
,
return
ModuleEntry
(
name
=
name
,
path
=
path
,
path
=
path
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment