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')