|
@@ -1,10 +1,11 @@
|
|
|
|
+import subprocess
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
from pathlib import Path
|
|
from pathlib import Path
|
|
-import subprocess
|
|
|
|
|
|
|
|
|
|
|
|
def task(name: str) -> subprocess.Popen:
|
|
def task(name: str) -> subprocess.Popen:
|
|
- return subprocess.Popen(f'C:\\Windows\\System32\\cmd.exe /C "{name} 1"', stdout=subprocess.DEVNULL).wait()
|
|
|
|
|
|
+ logfile = Path(name).parent.parent / "logs" / (Path(name).name + ".log")
|
|
|
|
+ return subprocess.Popen(f'C:\\Windows\\System32\\cmd.exe /C "{name} 1"', stdout=logfile.open("w")).wait()
|
|
|
|
|
|
|
|
|
|
def run(base_dir: str, max: int = 5) -> None:
|
|
def run(base_dir: str, max: int = 5) -> None:
|