From 43ca5ac5b911960a8800b1580ed0c0e74cf9a0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 28 May 2013 13:28:09 +0200 Subject: [PATCH] py2exe fix --- kcc.py | 2 ++ kcc/comic2ebook.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kcc.py b/kcc.py index 6318991..8de8c09 100644 --- a/kcc.py +++ b/kcc.py @@ -24,8 +24,10 @@ __docformat__ = 'restructuredtext en' from Tkinter import * from kcc import gui from sys import platform +from multiprocessing import freeze_support import os +freeze_support() root = Tk() root.resizable(width=False, height=False) root.config(padx=5, pady=5, takefocus=True) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index f3e26d0..07b6fff 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -32,7 +32,7 @@ from shutil import copytree from shutil import rmtree from shutil import make_archive from optparse import OptionParser -from multiprocessing import Pool +from multiprocessing import Pool, freeze_support import image import cbxarchive import pdfjpgextract @@ -732,6 +732,7 @@ def getEpubPath(): if __name__ == "__main__": + freeze_support() Copyright() main(sys.argv[1:]) sys.exit(0)