mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 02:31:51 +09:00
browser use 버전 업데이트 및 프롬프트 개선 및 임시 파일 삭제 구조 개선
This commit is contained in:
parent
657d5370b9
commit
0f5ab6dea1
16 changed files with 442 additions and 620 deletions
10
run.py
10
run.py
|
|
@ -1,5 +1,6 @@
|
|||
import argparse
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
from datetime import datetime
|
||||
|
|
@ -35,6 +36,7 @@ def run_script(start_line, end_line, skh_option):
|
|||
current_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
||||
print(f"[{current_time}] Processing lines {start_line} to {end_line}...")
|
||||
|
||||
process = None
|
||||
try:
|
||||
command = [
|
||||
"uv", "run", PYTHON_SCRIPT,
|
||||
|
|
@ -45,7 +47,13 @@ def run_script(start_line, end_line, skh_option):
|
|||
if skh_option:
|
||||
command.append("--skip-html-check")
|
||||
|
||||
subprocess.run(command, check=True)
|
||||
# KeyboardInterrupt를 subprocess에 전달하도록 수정
|
||||
process = subprocess.Popen(command)
|
||||
process.wait()
|
||||
|
||||
if process.returncode != 0:
|
||||
print("Python 스크립트 실행 실패")
|
||||
sys.exit(1)
|
||||
except subprocess.CalledProcessError:
|
||||
print("Python 스크립트 실행 실패")
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue