Skip to content

Commit

Permalink
[py]: use self.process and self.path correctly in the base servic…
Browse files Browse the repository at this point in the history
…e class
  • Loading branch information
symonk committed Oct 9, 2022
1 parent 9a9fd49 commit 118f449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def start(self) -> None:
try:
cmd = [self.path]
cmd.extend(self.command_line_args())
child_process = self.process = subprocess.Popen(
self.process = subprocess.Popen(
cmd,
env=self.env,
close_fds=system() != "Windows",
Expand All @@ -99,7 +99,7 @@ def start(self) -> None:
stdin=PIPE,
creationflags=self.creation_flags,
)
log.debug(f"Started executable: `{self.process}` in a child process with pid: {child_process.pid}")
log.debug(f"Started executable: `{self.path}` in a child process with pid: {self.process.pid}")
except TypeError:
raise
except OSError as err:
Expand Down

0 comments on commit 118f449

Please sign in to comment.