raidionics / Raidionics

Software for automatic segmentation and generation of standardized clinical reports of brain tumors from MRI volumes
https://raidionics.github.io/
BSD 2-Clause "Simplified" License
31 stars 4 forks source link

macOS fix #30

Closed andreped closed 2 years ago

andreped commented 2 years ago

We actually need to use freeze_support for both Windows and macOS. This was surpring. I found that from checking some threads on stack overflow.

freeze_support should in theory do nothing on Ubuntu, but I would just have it there for all operating systems, if it works.

Also, it was recommended to move the spawn_method stuff to the if __name__ == "__main__" right after the freeze_support.

Just tested the binary installers on both Windows and macOS and seems to work!

We can refactor the code at a later stage. Now we are ready for the final tests on Ubuntu and then publish the release!