Update SW_run.py
Browse files
SW_run.py
CHANGED
|
@@ -22,6 +22,9 @@ logging.getLogger().addHandler(console_handler)
|
|
| 22 |
sys.stdout = logging.getLogger().handlers[0].stream
|
| 23 |
sys.stderr = logging.getLogger().handlers[0].stream
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
try:
|
| 26 |
# 在try块中运行 /bushu/ui/launch.py,并将输出重定向到日志文件
|
| 27 |
with open(log_file, 'a') as log_file_handle:
|
|
|
|
| 22 |
sys.stdout = logging.getLogger().handlers[0].stream
|
| 23 |
sys.stderr = logging.getLogger().handlers[0].stream
|
| 24 |
|
| 25 |
+
# 切换到 /bushu/ui 目录
|
| 26 |
+
os.chdir('/bushu/ui')
|
| 27 |
+
|
| 28 |
try:
|
| 29 |
# 在try块中运行 /bushu/ui/launch.py,并将输出重定向到日志文件
|
| 30 |
with open(log_file, 'a') as log_file_handle:
|