fix: Windows mkdir syntax, use relative path for WINDOWS_DIR
This commit is contained in:
parent
c2eab35811
commit
b467445708
Binary file not shown.
@ -21,7 +21,7 @@ ITERATIONS_LOG = os.path.join(RESULTS_DIR, "iterations.jsonl")
|
||||
|
||||
# Remote machines
|
||||
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"
|
||||
|
||||
# Convergence
|
||||
@ -72,7 +72,7 @@ def ensure_data():
|
||||
def setup_windows_remote():
|
||||
"""Ensure the remote directory exists on Windows."""
|
||||
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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user