Skip to content

Commit

Permalink
🐛 Fix nested page requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Dec 10, 2019
1 parent 2bfb1ec commit a58bad0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dazzler/system/_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,11 @@ def collect_requirements(directory: str, page: str = None):
]
):
path = os.path.join(current, file)
path_obj = pathlib.Path(path)
requirements.append(
Requirement(
internal=path,
page=page,
name=path_obj.name
name=str(pathlib.Path(path).relative_to(directory))
)
)
return requirements

0 comments on commit a58bad0

Please sign in to comment.