Skip to content

Commit 966bd3f

Browse files
committed
[py]: Allow creation_flags to be passed into any Service via **kwargs
1 parent 520510d commit 966bd3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(
6565
self.log_file = open(os.devnull, "wb") if not _HAS_NATIVE_DEVNULL and log_file == DEVNULL else log_file
6666
self.start_error_message = start_error_message or ""
6767
# Default value for every python subprocess: subprocess.Popen(..., creationflags=0)
68-
self.creation_flags = 0
68+
self.creation_flags = kwargs.pop("creation_flags", 0)
6969
self.env = env or os.environ
7070

7171
@property

0 commit comments

Comments
 (0)