Clean command

This commit is contained in:
2026-08-22 17:17:30 +02:00
parent 576e3c9452
commit 15d1319374
7 changed files with 436 additions and 6 deletions
+6 -3
View File
@@ -27,12 +27,15 @@ class ProcessRunner:
command: list[str],
cwd: Path,
environment: dict[str, str],
log_path: Path,
log_path: Path | None,
) -> None:
if self.running:
raise RuntimeError("Un processus est déjà en cours")
log_path.parent.mkdir(parents=True, exist_ok=True)
self._log_file = log_path.open("wb")
if log_path is not None:
log_path.parent.mkdir(parents=True, exist_ok=True)
self._log_file = log_path.open("wb")
else:
self._log_file = None
self._interrupted = False
kwargs: dict[str, Any] = {}