diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py index de34c56..797c42f 100644 --- a/scripts/bootstrap.py +++ b/scripts/bootstrap.py @@ -1265,7 +1265,17 @@ def main() -> int: sys.stdin.readline() continue - run_client_script = repo_root / "scripts" / "run_client.py" if repo_root else Path(__file__).parent / "run_client.py" + 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" if run_client_script.exists(): try: