Wow! I can't believe I haven't started this project again!

This commit is contained in:
2024-11-25 15:59:50 -06:00
parent a02e87c3fa
commit f8c008fd45
47 changed files with 177 additions and 845 deletions

View File

@ -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()