From 4085f0015ff59a5c0f36d21436773f5047ce7325 Mon Sep 17 00:00:00 2001 From: Joseph HENRY Date: Fri, 20 Feb 2026 10:59:55 +0100 Subject: [PATCH] rollback zip changes --- blender_asset_tracer/cli/pack.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/blender_asset_tracer/cli/pack.py b/blender_asset_tracer/cli/pack.py index b8508b0..19e713e 100755 --- a/blender_asset_tracer/cli/pack.py +++ b/blender_asset_tracer/cli/pack.py @@ -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,