From e8bf6c13eeee11b9d8fde97f6a39bf9126eb93e0 Mon Sep 17 00:00:00 2001 From: Will Toohey Date: Wed, 7 Mar 2018 21:25:28 +0100 Subject: [PATCH] Fix repacking with exe --- ifstools/ifstools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ifstools/ifstools.py b/ifstools/ifstools.py index bc809f2..8149bc4 100644 --- a/ifstools/ifstools.py +++ b/ifstools/ifstools.py @@ -1,5 +1,6 @@ import argparse import os +import multiprocessing # for pyinstaller fixes try: # py 2 input = raw_input @@ -34,6 +35,7 @@ def repack(i, args, path): i.repack(progress = args.progress, use_cache = args.use_cache, path = path) def main(): + multiprocessing.freeze_support() # pyinstaller parser = argparse.ArgumentParser(description='Unpack/pack IFS files and textures') parser.add_argument('files', metavar='file_to_unpack.ifs|folder_to_repack_ifs', type=str, nargs='+', help='files/folders to process. Files will be unpacked, folders will be repacked')