From 0dd5640a89aba2eafa4e886d74f28f3a5e95357f Mon Sep 17 00:00:00 2001 From: mrq Date: Sat, 18 Feb 2023 14:14:42 +0000 Subject: [PATCH] forgot that call only worked if shell=True --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 166f333..e52b2db 100755 --- a/src/utils.py +++ b/src/utils.py @@ -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)