Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent endless loop #5534

Merged
merged 7 commits into from
Jul 19, 2021
9 changes: 5 additions & 4 deletions tools/conver_single_client_name_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def convert_name_sapce(python_file):
)


with multiprocessing.Pool(processes=multiprocessing.cpu_count()) as pool:
pool.map(convert_name_sapce, single_client_python_files)
pool.close()
pool.join()
if __name__ == "__main__":
with multiprocessing.Pool(processes=multiprocessing.cpu_count()) as pool:
pool.map(convert_name_sapce, single_client_python_files)
pool.close()
pool.join()