changed zip pack label
1.3.2 - changed: zip packer ops label `Export File to .ZIP` >> `Zip Pack - keep hierachy`main
parent
e2610a882e
commit
5af5c18f94
|
@ -14,7 +14,11 @@ This root can be manually changed in the settings (sidebar) of the export browse
|
|||
|
||||
### Changelog
|
||||
|
||||
1.3.2
|
||||
|
||||
- changed: zip packer ops label `Export File to .ZIP` >> `Zip Pack - keep hierachy`
|
||||
|
||||
1.3.1
|
||||
|
||||
- added: prefs for file zipper (fallback to this if env is not defined)
|
||||
- changed: zip operator id_name `bpy.ops.adm.export_zip` >> `bpy.opsbat.export_zip`
|
||||
- changed: zip operator id_name `bpy.ops.adm.export_zip` >> `bpy.ops.bat.export_zip`
|
|
@ -25,7 +25,7 @@ __version__ = '1.3'
|
|||
bl_info = {
|
||||
"name": "Blender Asset Tracer",
|
||||
"author": "Campbell Barton, Sybren A. Stüvel, Loïc Charrière and Clément Ducarteron",
|
||||
"version": (1, 3, 1),
|
||||
"version": (1, 3, 2),
|
||||
"blender": (2, 80, 0),
|
||||
"location": "File > External Data > BAT",
|
||||
"description": "Utility for packing blend files",
|
||||
|
@ -88,7 +88,7 @@ class ExportBatPack(Operator, ExportHelper):
|
|||
|
||||
class BAT_OT_export_zip(Operator, ExportHelper):
|
||||
"""Export current blendfile as .ZIP"""
|
||||
bl_label = "Export File to .ZIP"
|
||||
bl_label = "Zip Pack - keep hierachy" # Export File to .ZIP
|
||||
bl_idname = "bat.export_zip"
|
||||
|
||||
filename_ext = '.zip'
|
||||
|
@ -122,7 +122,7 @@ class BAT_OT_export_zip(Operator, ExportHelper):
|
|||
open the folder at the path given
|
||||
with cmd relative to user's OS
|
||||
"""
|
||||
|
||||
from shutil import which
|
||||
my_os = sys.platform
|
||||
if my_os.startswith(('linux','freebsd')):
|
||||
cmd = 'xdg-open'
|
||||
|
@ -242,7 +242,7 @@ class BAT_OT_export_zip(Operator, ExportHelper):
|
|||
with zipfile.ZipFile(output, 'a') as zipObj:
|
||||
zipObj.write(log_output, log_output.name)
|
||||
|
||||
### MEME CHOSE QUE
|
||||
### Same as
|
||||
#zipObj = zipfile.ZipFile(output, 'a')
|
||||
#zipObj.write(log_output, log_output.name)
|
||||
#zipObj.close()
|
||||
|
|
Loading…
Reference in New Issue