k
This commit is contained in:
@@ -1265,7 +1265,9 @@ def main() -> int:
|
|||||||
sys.stdin.readline()
|
sys.stdin.readline()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
run_client_script = None
|
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 = [
|
candidates = [
|
||||||
target_repo / "run_client.py",
|
target_repo / "run_client.py",
|
||||||
target_repo / "scripts" / "run_client.py",
|
target_repo / "scripts" / "run_client.py",
|
||||||
@@ -1274,10 +1276,8 @@ def main() -> int:
|
|||||||
if candidate.exists():
|
if candidate.exists():
|
||||||
run_client_script = candidate
|
run_client_script = candidate
|
||||||
break
|
break
|
||||||
if run_client_script is None:
|
|
||||||
run_client_script = Path(__file__).parent / "run_client.py"
|
|
||||||
|
|
||||||
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(
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user