Skip to content

Commit

Permalink
Fix cookieplone.generator._get_repository_root function (Fixes #20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed May 16, 2024
1 parent 4ef6e17 commit 53efa8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cookieplone/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _remove_internal_keys(context: OrderedDict) -> dict:

def _get_repository_root(context: OrderedDict, template: str) -> Path:
"""Return the templates root."""
repository = context.get("_checkout") or context.get("_template")
repository = context.get("_repo_dir") or context.get("_template")
if not repository:
raise exc.RepositoryNotFound()
repository = Path(repository).resolve()
Expand Down
1 change: 1 addition & 0 deletions news/20.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `cookieplone.generator._get_repository_root` to get the repository from the **_repo_dir** context variable [@ericof]

0 comments on commit 53efa8c

Please sign in to comment.