where to put freeze_support() in a Python script?
On Windows all of your multiprocessing-using code must be guarded by if __name__ == “__main__”: So to be safe, I would put all of your the code currently at the top-level of your script in a main() function, and then just do this at the top-level: if __name__ == “__main__”: main() See the “Safe importing … Read more