fix: Windows mkdir syntax, use relative path for WINDOWS_DIR

This commit is contained in:
BizzleBot 2026-03-19 22:19:10 +00:00
parent c2eab35811
commit b467445708
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ ITERATIONS_LOG = os.path.join(RESULTS_DIR, "iterations.jsonl")
# Remote machines # Remote machines
WINDOWS_HOST = "bizzle@100.76.218.38" WINDOWS_HOST = "bizzle@100.76.218.38"
WINDOWS_DIR = "~/btc-ml-optimizer" WINDOWS_DIR = "btc-ml-optimizer"
MAC_MINI_HOST = "bizzle@bizzles-mac-mini-1" MAC_MINI_HOST = "bizzle@bizzles-mac-mini-1"
# Convergence # Convergence
@ -72,7 +72,7 @@ def ensure_data():
def setup_windows_remote(): def setup_windows_remote():
"""Ensure the remote directory exists on Windows.""" """Ensure the remote directory exists on Windows."""
log("Ensuring Windows remote directory exists...", C.CYAN) log("Ensuring Windows remote directory exists...", C.CYAN)
run_cmd(f'ssh {WINDOWS_HOST} "mkdir -p {WINDOWS_DIR}"', timeout=30) run_cmd(f'ssh {WINDOWS_HOST} "if not exist {WINDOWS_DIR} mkdir {WINDOWS_DIR}"', timeout=30)
def scp_to_windows(local_path, remote_name): def scp_to_windows(local_path, remote_name):