mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
only freeze_support if we are frozen
This commit is contained in:
@@ -34,7 +34,8 @@ def main():
|
|||||||
|
|
||||||
# Run from command line
|
# Run from command line
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
multiprocessing.freeze_support()
|
if getattr(sys, 'frozen', False): # we're frozen:
|
||||||
|
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
|
||||||
# be safer than fork and less likely to see bulk command hangs.
|
# be safer than fork and less likely to see bulk command hangs.
|
||||||
|
|||||||
Reference in New Issue
Block a user