Full source paths.

This commit is contained in:
2026-02-23 23:15:19 -08:00
parent 88e7d9ff17
commit ca2d780018
3 changed files with 6 additions and 6 deletions

View File

@@ -161,7 +161,7 @@ def _summary_from_program(name: str, comp: ProgramSpec, root: Path) -> Component
# Infer runner from source directory
runner = None
if source:
source_dir = root / source
source_dir = Path(source)
if (source_dir / "pyproject.toml").exists():
runner = "python"
elif source_dir.is_file():
@@ -316,7 +316,7 @@ def _program_from_spec(
source = comp.source
runner = None
if source:
source_dir = root / source
source_dir = Path(source)
if (source_dir / "pyproject.toml").exists():
runner = "python"
elif source_dir.is_file():

View File

@@ -30,8 +30,8 @@ def _tool_summary(
# Infer runner from source directory
runner = None
source = comp.source
if source and root:
source_dir = root / source
if source:
source_dir = Path(source)
if (source_dir / "pyproject.toml").exists():
runner = "python"
elif source_dir.is_file():