File tree 1 file changed +4
-1
lines changed
py/selenium/webdriver/common
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class Service(ABC):
50
50
:param port: Port for the service to run on, defaults to 0 where the operating system will decide.
51
51
:param log_output: (Optional) int representation of STDOUT/DEVNULL, any IO instance or String path to file.
52
52
:param env: (Optional) Mapping of environment variables for the new process, defaults to `os.environ`.
53
+ :param driver_path_env_key: (Optional) Environment variable to use to get the path to the driver executable.
53
54
"""
54
55
55
56
def __init__ (
@@ -245,4 +246,6 @@ def _start_process(self, path: str) -> None:
245
246
raise
246
247
247
248
def env_path (self ) -> Optional [str ]:
248
- return os .getenv (self .DRIVER_PATH_ENV_KEY , None )
249
+ if self .DRIVER_PATH_ENV_KEY :
250
+ return os .getenv (self .DRIVER_PATH_ENV_KEY , None )
251
+ return None
You can’t perform that action at this time.
0 commit comments