mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
force fork on Linux, fixes #1843
This commit is contained in:
@@ -34,7 +34,10 @@ def main():
|
|||||||
|
|
||||||
# Run from command line
|
# Run from command line
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if platform.system() != 'Linux':
|
multiprocessing.freeze_support()
|
||||||
multiprocessing.freeze_support()
|
if platform.system() == 'Linux':
|
||||||
|
# no longer default in Python 3.14+ so we set it.
|
||||||
|
multiprocessing.set_start_method('fork')
|
||||||
|
else:
|
||||||
multiprocessing.set_start_method('spawn')
|
multiprocessing.set_start_method('spawn')
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user