only freeze_support if we are frozen

This commit is contained in:
Jay Lee
2025-10-08 21:52:26 +00:00
parent f3d9f3d518
commit 0422bf22ea

View File

@@ -34,7 +34,8 @@ def main():
# Run from command line
if __name__ == '__main__':
multiprocessing.freeze_support()
if getattr(sys, 'frozen', False): # we're frozen:
multiprocessing.freeze_support()
if platform.system() == 'Linux':
# set explictly since it's not default in Python < 3.14, forkserver should
# be safer than fork and less likely to see bulk command hangs.