1
0
Fork 0

forgot that call only worked if shell=True

master
mrq 2023-02-18 14:14:42 +07:00
parent 2615cafd75
commit 0dd5640a89
1 changed files with 1 additions and 1 deletions

@ -443,7 +443,7 @@ def run_training(config_path):
global training_process
torch.multiprocessing.freeze_support()
cmd = ['call' '.\\train.bat', config_path] if os.name == "nt" else ['bash', './train.sh', config_path]
cmd = ['train.bat', config_path] if os.name == "nt" else ['bash', './train.sh', config_path]
print("Spawning process: ", " ".join(cmd))
training_process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)