From 5fa98d1fe90de37aba5106a77049c2a1054025c8 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 25 Jul 2023 17:47:07 +0800 Subject: [PATCH] add new argument to make version dir, default is true --- chrome_tixcraft.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index 6224890..2c02919 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -413,7 +413,7 @@ def load_chromdriver_normal(config_dict, driver_type): Root_Dir = get_app_root() webdriver_path = os.path.join(Root_Dir, "webdriver") - chromedriver_autoinstaller.install(path=webdriver_path) + chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False) chromedriver_path = get_chromedriver_path(webdriver_path) @@ -446,7 +446,7 @@ def load_chromdriver_normal(config_dict, driver_type): pass except FileNotFoundError: pass - chromedriver_autoinstaller.install(path=webdriver_path) + chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False) chrome_service = Service(chromedriver_path) try: driver = webdriver.Chrome(service=chrome_service, options=chrome_options) @@ -518,7 +518,7 @@ def load_chromdriver_uc(config_dict): Root_Dir = get_app_root() webdriver_path = os.path.join(Root_Dir, "webdriver") - chromedriver_autoinstaller.install(path=webdriver_path) + chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False) chromedriver_path = get_chromedriver_path(webdriver_path) @@ -591,7 +591,7 @@ def load_chromdriver_uc(config_dict): pass except FileNotFoundError: pass - chromedriver_path = get_chromedriver_path(webdriver_path) + chromedriver_autoinstaller.install(path="webdriver", make_version_dir=False) try: driver = uc.Chrome(driver_executable_path=chromedriver_path, options=options, headless=config_dict["advanced"]["headless"]) except Exception as exc2: