Update SW_run.py
Browse files
SW_run.py
CHANGED
@@ -35,7 +35,7 @@ os.chdir('/bushu/ui')
|
|
35 |
try:
|
36 |
# 在 try 块中运行 /bushu/ui/launch.py,并将输出重定向到日志文件
|
37 |
with open(log_file, 'a') as log_file_handle, open(url_file, 'a') as url_file_handle:
|
38 |
-
process = subprocess.Popen(['python', '/bushu/ui/launch.py'
|
39 |
|
40 |
url_pattern = re.compile(r'https?://\S+')
|
41 |
|
|
|
35 |
try:
|
36 |
# 在 try 块中运行 /bushu/ui/launch.py,并将输出重定向到日志文件
|
37 |
with open(log_file, 'a') as log_file_handle, open(url_file, 'a') as url_file_handle:
|
38 |
+
process = subprocess.Popen(['python', '/bushu/ui/launch.py'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
|
39 |
|
40 |
url_pattern = re.compile(r'https?://\S+')
|
41 |
|