Skip to content

Commit

Permalink
fix: restore old Firefox binary location detection logic while preser…
Browse files Browse the repository at this point in the history
…ving new one
  • Loading branch information
bytexenon committed Nov 20, 2024
1 parent 1131e67 commit 9a8c103
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions undetected_geckodriver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def _get_firefox_installation_path(self) -> str:
Normally, it's located in `/usr/lib/firefox`.
"""

# firefox_paths: list = self._platform_dependent_params["firefox_paths"]
# for path in firefox_paths:
# if os.path.exists(path):
# return path
firefox_paths: list = self._platform_dependent_params["firefox_paths"]
for path in firefox_paths:
if os.path.exists(path):
return path

# Fixes #4
# If the first method fails, we can try to find the path by running
Expand Down

0 comments on commit 9a8c103

Please sign in to comment.