Skip to content

Commit 1630d1c

Browse files
committed
Use pathlib.Path in bake method
1 parent f833773 commit 1630d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_cookies/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def bake(self, extra_context=None, template=None):
8484
if template is None:
8585
template = self._default_template
8686

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

8989
try:
9090
# Render the context, so that we can store it on the Result

0 commit comments

Comments
 (0)