Skip to content

Commit

Permalink
Update faq.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte committed Jun 9, 2024
1 parent b9bdd4e commit 7ac448f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/src/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ If the freeze_support() line is omitted, then running the frozen executable
will raise RuntimeError on Windows. On Linux and macOS a similar message is
shown but cx_Freeze tries to run the program by injecting a freeze_support.

Contrary to what the Python docs may state, you MUST use `multiprocessing.freeze_support()` on MacOS, Windows, and Linux. On Mac and Linux, cx_Freeze patches the call to also handle `multiprocessing.spawn.freeze_support()` when needed.
required on all operating systems. In addition, if the module is being run
normally by the Python interpreter on any OS (the program has not been frozen),
then freeze_support() has no effect.
Contrary to what the Python docs may state, you MUST use
`multiprocessing.freeze_support()` on MacOS, Windows, and Linux. On Mac and
Linux, cx_Freeze patches the call to also handle
`multiprocessing.spawn.freeze_support()` when needed. In addition, if the
module is being run normally by the Python interpreter on any OS
(the program has not been frozen), then freeze_support() has no effect.

0 comments on commit 7ac448f

Please sign in to comment.