diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-04-25 11:11:55 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-04-25 11:11:55 +0300 |
commit | d3b5ab37772aafd6892466a61eb75741f70189de (patch) | |
tree | fd5a4c1b0a76313ddee5b2a1fa93a7b6f618cd85 /build_files/cmake/project_source_info.py | |
parent | 99dfc769f32a53c118692451d38d534bed697e88 (diff) | |
parent | 416ef3b6b2d21a2eb7a24183ab67c8a540f79d57 (diff) |
Merge branch 'master' into temp-gp-overlay-refactortemp-gp-overlay-refactor
Diffstat (limited to 'build_files/cmake/project_source_info.py')
-rw-r--r-- | build_files/cmake/project_source_info.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build_files/cmake/project_source_info.py b/build_files/cmake/project_source_info.py index 1479d62e6c5..7a00f756e03 100644 --- a/build_files/cmake/project_source_info.py +++ b/build_files/cmake/project_source_info.py @@ -114,12 +114,11 @@ def makefile_log() -> List[str]: print("Can't execute process") sys.exit(1) - while process.poll(): time.sleep(1) # We know this is always true based on the input arguments to `Popen`. - stdout: IO[bytes] = process.stdout # type: ignore + stdout: IO[bytes] = process.stdout # type: ignore out = stdout.read() stdout.close() @@ -210,7 +209,7 @@ def build_defines_as_source() -> str: ) # We know this is always true based on the input arguments to `Popen`. - stdout: IO[bytes] = process.stdout # type: ignore + stdout: IO[bytes] = process.stdout # type: ignore return cast(str, stdout.read().strip().decode('ascii')) @@ -228,7 +227,7 @@ def build_defines_as_args() -> List[str]: def queue_processes( process_funcs: Sequence[Tuple[Callable[..., subprocess.Popen[Any]], Tuple[Any, ...]]], *, - job_total: int =-1, + job_total: int = -1, sleep: float = 0.1, ) -> None: """ Takes a list of function arg pairs, each function must return a process |