Skip to content

Commit

Permalink
[py]: Return a pathlib.Path when SE_MANAGER_PATH is set. closes S…
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk authored and aguspe committed Oct 22, 2023
1 parent 2ba3b25 commit e15fed5
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 e15fed5

Please sign in to comment.