rollback zip changes

This commit is contained in:
Joseph HENRY 2026-02-20 10:59:55 +01:00
parent cf31dbc5ec
commit 4085f0015f

View File

@ -97,14 +97,6 @@ def add_parser(subparsers):
"path structure under the target directory. Paths in blend files are "
"rewritten to relative paths within this structure.",
)
parser.add_argument(
"-z",
"--zip",
default=False,
action="store_true",
help="Force output as a ZIP archive, even when the target path does "
"not end in '.zip'. The '.zip' extension is appended automatically.",
)
def cli_pack(args):
@ -164,15 +156,12 @@ def create_packer(
packer = create_shamanpacker(bpath, ppath, target)
elif args.zip:
elif target.lower().endswith(".zip"):
from blender_asset_tracer.pack import zipped
if args.compress:
raise ValueError("ZIP packer does not support on-the-fly compression")
if not target.lower().endswith(".zip"):
target += ".zip"
packer = zipped.ZipPacker(
bpath, ppath, target, noop=args.noop, relative_only=args.relative_only,
keep_hierarchy=args.keep_hierarchy,