Return the bundled/source shared scripts directory.
(
*,
core_pack: Path | None,
repo_root: Path,
)
| 130 | |
| 131 | |
| 132 | def shared_scripts_source( |
| 133 | *, |
| 134 | core_pack: Path | None, |
| 135 | repo_root: Path, |
| 136 | ) -> Path: |
| 137 | """Return the bundled/source shared scripts directory.""" |
| 138 | if core_pack and (core_pack / "scripts").is_dir(): |
| 139 | return core_pack / "scripts" |
| 140 | return repo_root / "scripts" |
| 141 | |
| 142 | |
| 143 | def _shared_destination_label(project_path: Path, dest: Path) -> str: |
no outgoing calls
no test coverage detected