From 7de1fba3ad1740bb194a716903ab04d6e42ca8ce Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 14 Aug 2023 15:06:50 -0600 Subject: [PATCH] fix for tox/linting error --- py/selenium/webdriver/common/selenium_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/selenium/webdriver/common/selenium_manager.py b/py/selenium/webdriver/common/selenium_manager.py index b94056e29f0f6..25790bacb323a 100644 --- a/py/selenium/webdriver/common/selenium_manager.py +++ b/py/selenium/webdriver/common/selenium_manager.py @@ -54,9 +54,9 @@ def get_binary() -> Path: path = Path(__file__).parent.joinpath(directory, file) - if not path.is_file() and os.environ['CONDA_PREFIX']: + if not path.is_file() and os.environ["CONDA_PREFIX"]: # conda has a separate package selenium-manager, installs in bin - path = Path(os.path.join(os.environ['CONDA_PREFIX'], 'bin', file)) + path = Path(os.path.join(os.environ["CONDA_PREFIX"], "bin", file)) logger.debug(f"Conda environment detected, using `{path}`") if not path.is_file(): raise WebDriverException(f"Unable to obtain working Selenium Manager binary; {path}")