[Bf-extensions-cvs] [8beb835] temp-blend-utils: Check if the temp arg is set before using

Campbell Barton noreply at git.blender.org
Fri Jan 29 07:21:08 CET 2016


Commit: 8beb8352a92da0ab8a5e1381f2af9b89d272254c
Author: Campbell Barton
Date:   Fri Jan 29 17:13:26 2016 +1100
Branches: temp-blend-utils
https://developer.blender.org/rBA8beb8352a92da0ab8a5e1381f2af9b89d272254c

Check if the temp arg is set before using

===================================================================

M	io_blend_utils/blendfile_pack.py

===================================================================

diff --git a/io_blend_utils/blendfile_pack.py b/io_blend_utils/blendfile_pack.py
index 161b887..1c64ecb 100755
--- a/io_blend_utils/blendfile_pack.py
+++ b/io_blend_utils/blendfile_pack.py
@@ -588,7 +588,9 @@ def main():
             args.path_src.encode('utf-8'),
             args.path_dst.encode('utf-8'),
             mode=args.mode,
-            base_dir_dst_temp=args.temp_path.encode('utf-8'),
+            base_dir_dst_temp=(
+                args.temp_path.encode('utf-8')
+                if args.temp_path else None),
             ):
         report(msg)



More information about the Bf-extensions-cvs mailing list