Update SW_run.py
Browse files
SW_run.py
CHANGED
@@ -25,7 +25,7 @@ sys.stderr = logging.getLogger().handlers[0].stream
|
|
25 |
try:
|
26 |
# 在try块中运行/bushu/ui/launch.py,并将输出重定向到日志文件
|
27 |
with open(log_file, 'a') as log_file_handle:
|
28 |
-
subprocess.run(['python', '/bushu/ui/launch.py', '--skip-torch-cuda-test'
|
29 |
|
30 |
except subprocess.CalledProcessError as e:
|
31 |
# 捕获异常并记录到日志文件
|
|
|
25 |
try:
|
26 |
# 在try块中运行/bushu/ui/launch.py,并将输出重定向到日志文件
|
27 |
with open(log_file, 'a') as log_file_handle:
|
28 |
+
subprocess.run(['python', '/bushu/ui/launch.py', '--skip-torch-cuda-test'], check=True, stdout=log_file_handle, stderr=subprocess.STDOUT)
|
29 |
|
30 |
except subprocess.CalledProcessError as e:
|
31 |
# 捕获异常并记录到日志文件
|