Update launch.py
Browse files
launch.py
CHANGED
|
@@ -31,7 +31,7 @@ subprocess.run(["cd", "/bushu/ui"], shell=True)
|
|
| 31 |
try:
|
| 32 |
# 在try块中运行v2_3.py,并将输出重定向到日志文件
|
| 33 |
with open(log_file, 'a') as log_file_handle:
|
| 34 |
-
subprocess.run(['python', 'launch.py'], check=True, stdout=log_file_handle, stderr=subprocess.STDOUT)
|
| 35 |
except subprocess.CalledProcessError as e:
|
| 36 |
# 捕获异常并记录到日志文件
|
| 37 |
logging.exception(f"程序发生异常: {e}")
|
|
|
|
| 31 |
try:
|
| 32 |
# 在try块中运行v2_3.py,并将输出重定向到日志文件
|
| 33 |
with open(log_file, 'a') as log_file_handle:
|
| 34 |
+
subprocess.run(['python', '/bushu/ui/launch.py'], check=True, stdout=log_file_handle, stderr=subprocess.STDOUT)
|
| 35 |
except subprocess.CalledProcessError as e:
|
| 36 |
# 捕获异常并记录到日志文件
|
| 37 |
logging.exception(f"程序发生异常: {e}")
|