Skip to content

Commit

Permalink
[Screenshot] fix finding geckodriver
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Sep 19, 2024
1 parent 86cbb30 commit dff1740
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions screenshot/common/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,24 @@ def location(self) -> Optional[pathlib.Path]:
return (
loc[0]
if (
loc := list(self.data_directory.glob("geckodriver-{}*".format(self.get_os())))
or (loc := list(self.data_directory.glob("geckodrive-{}*".format(self.get_os()))))
loc := list(
self.data_directory.glob(
"geckodriver-{}*".format(
"linux-aarch64" if platform.machine() == "aarch64" else self.get_os()
)
)
)
or (
loc := list(
self.data_directory.glob(
"geckodrive-{}*".format(
"linux-aarch64"
if platform.machine() == "aarch64"
else self.get_os()
)
)
)
)
)
else None
)
Expand Down

0 comments on commit dff1740

Please sign in to comment.