refactor: update project code
This commit is contained in:
@@ -47,7 +47,7 @@ class CommandLogger(threading.Thread):
|
||||
class CommandExecutor:
|
||||
_logger = logger
|
||||
|
||||
def __init__(self, command: str) -> None:
|
||||
def __init__(self, command: str):
|
||||
self._command = command
|
||||
|
||||
def run(self, basepath: Path):
|
||||
@@ -58,8 +58,8 @@ class CommandExecutor:
|
||||
result = subprocess.run(
|
||||
self._command.split(" "),
|
||||
cwd=basepath,
|
||||
stdout=out_logger,
|
||||
stderr=err_logger,
|
||||
stdout=out_logger, # type: ignore
|
||||
stderr=err_logger, # type: ignore
|
||||
)
|
||||
finally:
|
||||
out_logger.close()
|
||||
|
||||
Reference in New Issue
Block a user