Firemedic15 commited on
Commit
8755f5e
·
verified ·
1 Parent(s): 14fd772

Upload scripts/run_experiment.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. scripts/run_experiment.py +2 -1
scripts/run_experiment.py CHANGED
@@ -25,8 +25,9 @@ os.environ["KLENT_OUTPUT_DIR"] = str(output_dir)
25
 
26
  print(json.dumps({"event": "start", "env_id": env_id, "seed": seed, "args": args}), flush=True)
27
 
 
28
  proc = subprocess.Popen(
29
- ["python", "main.py"] + args,
30
  stdout=subprocess.PIPE,
31
  stderr=subprocess.STDOUT,
32
  text=True,
 
25
 
26
  print(json.dumps({"event": "start", "env_id": env_id, "seed": seed, "args": args}), flush=True)
27
 
28
+ python_cmd = "python3" if sys.platform != "win32" else "python"
29
  proc = subprocess.Popen(
30
+ [python_cmd, "main.py"] + args,
31
  stdout=subprocess.PIPE,
32
  stderr=subprocess.STDOUT,
33
  text=True,