Skip to content

Commit

Permalink
Release preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
UuuNyaa committed Mar 3, 2021
1 parent 082265f commit 7a127a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mmd_uuunyaa_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"name": "mmd_uuunyaa_tools",
"description": "Utility tools for MMD model & scene editing by Uuu(/>ω<)/Nyaa!.",
"author": "UuuNyaa",
"version": (0, 1, 1),
"version": (0, 2, 0),
"blender": (2, 80, 0),
"warning": "",
"location": "View3D > Tool Shelf > MMD Tools Panel",
Expand Down
3 changes: 2 additions & 1 deletion mmd_uuunyaa_tools/asset_search/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def unzip(zip_file_path=None, encoding='cp437', password=None, asset=None):

with zipfile.ZipFile(zip_file_path) as zip:
for info in zip.infolist():
info.filename = info.orig_filename.encode('cp437').decode(encoding)
orig_codec = 'utf-8' if info.flag_bits & 0x800 else 'cp437'
info.filename = info.orig_filename.encode(orig_codec).decode(encoding)
if os.sep != '/' and os.sep in info.filename:
info.filename = info.filename.replace(os.sep, '/')
zip.extract(info, path=asset_path, pwd=password)
Expand Down

0 comments on commit 7a127a4

Please sign in to comment.