Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-06-10 12:08:51 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-06-10 12:08:51 +0300
commit8d5d983116b19b9f84230b387e59b735a758b226 (patch)
tree8d3665f18c1a97809f971c0bf1ec081dabf4a519
parent43e25b2ab123a50f72e939c3254d6c34ba2e7eba (diff)
BAM: tiny upstream fix
-rw-r--r--io_blend_utils/blender_bam-unpacked.whl/bam/blend/blendfile_pack.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/io_blend_utils/blender_bam-unpacked.whl/bam/blend/blendfile_pack.py b/io_blend_utils/blender_bam-unpacked.whl/bam/blend/blendfile_pack.py
index 706b109c..0c44d6dc 100644
--- a/io_blend_utils/blender_bam-unpacked.whl/bam/blend/blendfile_pack.py
+++ b/io_blend_utils/blender_bam-unpacked.whl/bam/blend/blendfile_pack.py
@@ -645,6 +645,11 @@ def exclusion_filter(exclude: str):
return filename_filter
+def encode_none_safe(value: str):
+ if value is None:
+ return None
+ return value.encode('utf8')
+
def main():
parser = create_argparse()
args = parser.parse_args()
@@ -661,7 +666,7 @@ def main():
args.path_src.encode('utf8'),
args.path_dst.encode('utf8'),
mode=args.mode,
- base_dir_dst_temp=args.temp_path.encode('utf8'),
+ base_dir_dst_temp=encode_none_safe(args.temp_path),
filename_filter=exclusion_filter(args.exclude),
):
report(msg)