rollback zip changes
This commit is contained in:
parent
cf31dbc5ec
commit
4085f0015f
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user