BBrother commited on
Commit
34ba11b
·
1 Parent(s): 597c2f2

Update SW_run.py

Browse files
Files changed (1) hide show
  1. SW_run.py +3 -0
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: