Skip to content

Commit

Permalink
Use pathlib.Path in bake method
Browse files Browse the repository at this point in the history
  • Loading branch information
hackebrot committed May 24, 2021
1 parent f833773 commit 1630d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_cookies/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def bake(self, extra_context=None, template=None):
if template is None:
template = self._default_template

context_file = py.path.local(template).join("cookiecutter.json")
context_file = pathlib.Path(template) / "cookiecutter.json"

try:
# Render the context, so that we can store it on the Result
Expand Down

0 comments on commit 1630d1c

Please sign in to comment.