Update SW_run.py
Browse files
SW_run.py
CHANGED
|
@@ -35,7 +35,7 @@ os.chdir('/etc/main')
|
|
| 35 |
try:
|
| 36 |
# 在 try 块中运行 /etc/main/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', '/etc/main/webui.py',
|
| 39 |
|
| 40 |
url_pattern = re.compile(r'https?://\S+')
|
| 41 |
|
|
|
|
| 35 |
try:
|
| 36 |
# 在 try 块中运行 /etc/main/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', '/etc/main/webui.py', wise], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
|
| 39 |
|
| 40 |
url_pattern = re.compile(r'https?://\S+')
|
| 41 |
|