1
0
mirror of https://github.com/mon/ifstools.git synced 2024-11-24 10:00:09 +01:00

Fix repacking with exe

This commit is contained in:
Will Toohey 2018-03-07 21:25:28 +01:00
parent 9996fe4532
commit e8bf6c13ee

View File

@ -1,5 +1,6 @@
import argparse import argparse
import os import os
import multiprocessing # for pyinstaller fixes
try: try:
# py 2 # py 2
input = raw_input input = raw_input
@ -34,6 +35,7 @@ def repack(i, args, path):
i.repack(progress = args.progress, use_cache = args.use_cache, path = path) i.repack(progress = args.progress, use_cache = args.use_cache, path = path)
def main(): def main():
multiprocessing.freeze_support() # pyinstaller
parser = argparse.ArgumentParser(description='Unpack/pack IFS files and textures') 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='+', 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') help='files/folders to process. Files will be unpacked, folders will be repacked')