We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b38e834 commit 249c2e4Copy full SHA for 249c2e4
pattern_library/utils.py
@@ -115,8 +115,8 @@ def get_pattern_templates():
115
found_templates.append(template)
116
117
if found_templates:
118
- sub_folders = os.path.relpath(root, lookup_dir)
119
- sub_folders = os.path.relpath(sub_folders, path) # TODO improve this
+ lookup_dir_relpath = os.path.relpath(root, lookup_dir)
+ sub_folders = os.path.relpath(lookup_dir_relpath, path)
120
templates_to_store = templates
121
for folder in [section, *sub_folders.split(os.sep)]:
122
try:
0 commit comments