Skip to content

Commit

Permalink
[py]: Return a pathlib.Path when SE_MANAGER_PATH is set. closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Oct 11, 2023
1 parent 7ddfad6 commit d9f0010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/selenium/webdriver/common/selenium_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def get_binary() -> Path:
:Returns: The Selenium Manager executable location
"""

if os.getenv("SE_MANAGER_PATH"):
path = os.getenv("SE_MANAGER_PATH")
if path := os.getenv("SE_MANAGER_PATH") is not None:
return Path(path)
else:
platform = sys.platform

Expand Down

0 comments on commit d9f0010

Please sign in to comment.