mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
merge: update to ungoogled-chromium 150.0.7871.124
This commit is contained in:
@@ -16,11 +16,11 @@ the process has finished.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import multiprocessing
|
||||
import os
|
||||
import sys
|
||||
|
||||
from itertools import repeat
|
||||
from multiprocessing import Pool
|
||||
from pathlib import Path, PurePosixPath
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
|
||||
@@ -338,7 +338,7 @@ def compute_lists(source_tree, search_regex, processes): # pylint: disable=too-m
|
||||
unused_patterns = UnusedPatterns()
|
||||
|
||||
# Launch multiple processes iterating over the source tree
|
||||
with Pool(processes) as procpool:
|
||||
with multiprocessing.Pool(processes) as procpool:
|
||||
returned_data = procpool.starmap(
|
||||
compute_lists_proc,
|
||||
zip(source_tree.rglob('*'), repeat(source_tree), repeat(search_regex)))
|
||||
@@ -427,4 +427,6 @@ def main(args_list=None):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if os.name == 'posix':
|
||||
multiprocessing.set_start_method('fork')
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user