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,6 +34,7 @@ def main():
# Run from command line # Run from command line
if __name__ == '__main__': if __name__ == '__main__':
if getattr(sys, 'frozen', False): # we're frozen:
multiprocessing.freeze_support() multiprocessing.freeze_support()
if platform.system() == 'Linux': if platform.system() == 'Linux':
# set explictly since it's not default in Python < 3.14, forkserver should # set explictly since it's not default in Python < 3.14, forkserver should