Skip to content

Commit

Permalink
Merge pull request #109 from zhieejhia93/fix_extra_template
Browse files Browse the repository at this point in the history
Fixed path for extra_template_inputs
  • Loading branch information
paulromano authored Aug 20, 2023
2 parents c786e9e + a2dbb66 commit e23eefe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/watts/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e23eefe

Please sign in to comment.