Commit 771ca38e authored by sumpfralle's avatar sumpfralle

added a fix for using multiprocessing on multi-core Windows systems (using the...

added a fix for using multiprocessing on multi-core Windows systems (using the standalone executable created by PyInstaller) 


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@806 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 7a637362
......@@ -397,6 +397,12 @@ def execute(parser, opts, args, pycam):
# define the commandline interface
if __name__ == "__main__":
# The PyInstaller standalone executable requires this "freeze_support" call.
# Otherwise we will see a warning regarding an invalid argument called
# "--multiprocessing-fork". This problem can be triggered on single-core
# systems with these arguments: "--enable-server --server-auth-key foo".
if hasattr(multiprocessing, "freeze_support"):
multiprocessing.freeze_support()
parser = OptionParser(prog="PyCAM",
usage="usage: pycam [options] [inputfile]\n\n" \
+ "Start the PyCAM toolpath generator. Supplying one of " \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment