diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc8d8e..a6accca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. specifies the directory created in the database ([#107](https://github.com/watts-dev/watts/pull/107)) +### Fixed + +* Fixed path for templates rendered from the `extra_template_inputs` argument in + `PluginGeneric` and subclasses + ([#109](https://github.com/watts-dev/watts/pull/109)) + ## [0.5.1] ### Added diff --git a/src/watts/template.py b/src/watts/template.py index 1c0b8ae..b12d9ee 100644 --- a/src/watts/template.py +++ b/src/watts/template.py @@ -53,7 +53,7 @@ def __call__(self, params: Parameters, filename: Optional[PathLike] = None): # Default rendered template filename if filename is None: name = self.template_file.name - out_path = self.template_file.with_name(f'{name}{self.suffix}') + out_path = Path(f'{name}{self.suffix}') else: out_path = Path(filename)