Wow! I can't believe I haven't started this project again!
This commit is contained in:
@ -9,7 +9,9 @@ import tarfile
|
||||
import argparse
|
||||
|
||||
# Args
|
||||
parser = argparse.ArgumentParser(description='Bundles all assets into the internal archive format.')
|
||||
parser = argparse.ArgumentParser(
|
||||
description='Bundles all assets into the internal archive format.'
|
||||
)
|
||||
parser.add_argument('-i', '--input');
|
||||
parser.add_argument('-o', '--output');
|
||||
args = parser.parse_args()
|
||||
@ -24,7 +26,7 @@ if not os.path.exists(os.path.dirname(args.output)):
|
||||
# Does the archive already exist?
|
||||
filesInArchive = []
|
||||
|
||||
if os.path.exists(args.output):
|
||||
if os.path.exists(args.output) and False:
|
||||
# Yes, open it
|
||||
archive = tarfile.open(args.output, 'r:')
|
||||
|
||||
@ -57,4 +59,4 @@ for foldername, subfolders, filenames in os.walk(args.input):
|
||||
archive.add(absolute_path, arcname=relative_path)
|
||||
|
||||
# Close the archive
|
||||
archive.close()
|
||||
archive.close()
|
||||
|
Reference in New Issue
Block a user