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()
continue
run_client_script = None
candidates = [
target_repo / "run_client.py",
target_repo / "scripts" / "run_client.py",
]
for candidate in candidates:
if candidate.exists():
run_client_script = candidate
break
if run_client_script is None:
run_client_script = Path(__file__).parent / "run_client.py"
run_client_script = Path(__file__).parent / "run_client.py"
if not run_client_script.exists():
# Fallback to target repo's copy if our local one is missing
candidates = [
target_repo / "run_client.py",
target_repo / "scripts" / "run_client.py",
]
for candidate in candidates:
if candidate.exists():
run_client_script = candidate
break
if run_client_script.exists():
if run_client_script and run_client_script.exists():
try:
# We pass --repo-root explicitly to the target_repo provided by the user
subprocess.check_call(

View File

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