소스 검색

for linux

jason 2 년 전
부모
커밋
45c2d1ca10
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      website_clickjobs/tools/resetrouter.py

+ 1 - 2
website_clickjobs/tools/resetrouter.py

@@ -112,8 +112,7 @@ def run_once():
     options.add_argument("--disable-dev-shm-usage")
     options.add_argument("--incognito")
     print('before init')
-    os.system('taskkill /f /im msedge.exe')
-    os.system('taskkill /f /im chrome.exe')
+    os.system('killall -9 chrome.exe')
     driver = webdriver.Chrome(options=options)
     print('after init')