This commit is contained in:
2026-01-23 02:57:27 -08:00
parent e8a53afc3d
commit 035e7096fb
2 changed files with 13 additions and 12 deletions

View File

@@ -1265,19 +1265,19 @@ def main() -> int:
sys.stdin.readline() sys.stdin.readline()
continue continue
run_client_script = None run_client_script = Path(__file__).parent / "run_client.py"
candidates = [ if not run_client_script.exists():
target_repo / "run_client.py", # Fallback to target repo's copy if our local one is missing
target_repo / "scripts" / "run_client.py", candidates = [
] target_repo / "run_client.py",
for candidate in candidates: target_repo / "scripts" / "run_client.py",
if candidate.exists(): ]
run_client_script = candidate for candidate in candidates:
break if candidate.exists():
if run_client_script is None: run_client_script = candidate
run_client_script = Path(__file__).parent / "run_client.py" break
if run_client_script.exists(): if run_client_script and run_client_script.exists():
try: try:
# We pass --repo-root explicitly to the target_repo provided by the user # We pass --repo-root explicitly to the target_repo provided by the user
subprocess.check_call( subprocess.check_call(

View File

@@ -334,6 +334,7 @@ def install_service_systemd(
workspace_root: Optional[Path] = None, workspace_root: Optional[Path] = None,
) -> bool: ) -> bool:
try: try:
print(f"Installing systemd user service via {Path(__file__).resolve()}...")
systemctl = shutil.which("systemctl") systemctl = shutil.which("systemctl")
if not systemctl: if not systemctl:
print( print(