Skip to content

Commit

Permalink
Fix confusion with variable (#392)
Browse files Browse the repository at this point in the history
Previous version would make the script look for the cached Edge driver in the wrong location, causing it to always think the driver is not cached (and therefore download a new, unnecessary copy of the driver). Resolves #387
  • Loading branch information
unixfy committed Jun 24, 2022
1 parent 676f5be commit 8433c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webdriver_manager/core/driver_cache.py
Expand Up @@ -111,7 +111,7 @@ def find_driver(self, driver):
"msedgedriver" if driver_name == "edgedriver" else driver_name
)
driver_binary_name = (
f"{driver_binary_name}.exe" if "win" in os_type else driver_name
f"{driver_binary_name}.exe" if "win" in os_type else driver_binary_name
)
binary_path = os.path.join(path, driver_binary_name)
if not os.path.exists(binary_path):
Expand Down

0 comments on commit 8433c1a

Please sign in to comment.