[meld/meld-3-18] Fix using multiprocessing while freezed (for windows installer).
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/meld-3-18] Fix using multiprocessing while freezed (for windows installer).
- Date: Sun, 12 Nov 2017 20:40:12 +0000 (UTC)
commit 70a0386e875eb7bbf5366cf1843ed250cc694d0e
Author: galkinvv <galkin-vv ya ru>
Date: Tue Oct 10 04:26:25 2017 +0300
Fix using multiprocessing while freezed (for windows installer).
bin/meld | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/bin/meld b/bin/meld
index bdf9637..253146d 100755
--- a/bin/meld
+++ b/bin/meld
@@ -22,6 +22,11 @@ import os
import signal
import subprocess
import sys
+from multiprocessing import freeze_support
+
+# Main module hasn't multiprocessing workers, so not imported in subprocesses.
+# This allows skipping '__name__ == "main"' guard, but freezed case is special.
+freeze_support()
# On Windows, pythonw.exe (which doesn't display a console window) supplies
# dummy stdout and stderr streams that silently throw away any output. However,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]