Return the bundled/source shared templates directory.
(
*,
core_pack: Path | None,
repo_root: Path,
)
| 119 | |
| 120 | |
| 121 | def shared_templates_source( |
| 122 | *, |
| 123 | core_pack: Path | None, |
| 124 | repo_root: Path, |
| 125 | ) -> Path: |
| 126 | """Return the bundled/source shared templates directory.""" |
| 127 | if core_pack and (core_pack / "templates").is_dir(): |
| 128 | return core_pack / "templates" |
| 129 | return repo_root / "templates" |
| 130 | |
| 131 | |
| 132 | def shared_scripts_source( |
no outgoing calls
no test coverage detected