Skip to content

Commit 1d05a3a

Browse files
committed
fix: config directory may already be rendered string
We determine variant pages late in the game when the variant config was merged into the document config
1 parent 75cae8e commit 1d05a3a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/pdfbaker/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ def resolve_path(self, spec: PathSpec, directory: Path | None = None) -> Path:
8585
Resolved Path object
8686
"""
8787
directory = directory or self["directories"]["config"]
88+
if isinstance(directory, str):
89+
directory = Path(directory)
90+
8891
if isinstance(spec, str):
8992
return directory / spec
9093

0 commit comments

Comments
 (0)