[Bf-extensions-cvs] [80a53718] blender-v2.79a-release: fix #T53706 : write cmd script into writeable temp folder

Stephen Leger noreply at git.blender.org
Mon Jan 8 11:46:20 CET 2018


Commit: 80a53718a56a3639da42f6cc8ebd884bc625dec8
Author: Stephen Leger
Date:   Sat Jan 6 17:23:14 2018 +0100
Branches: blender-v2.79a-release
https://developer.blender.org/rBA80a53718a56a3639da42f6cc8ebd884bc625dec8

fix #T53706 : write cmd script into writeable temp folder

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

M	materials_library_vx/__init__.py

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

diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py
index 5891bdc5..1eb8de42 100644
--- a/materials_library_vx/__init__.py
+++ b/materials_library_vx/__init__.py
@@ -21,7 +21,7 @@
 bl_info = {
   "name": "Material Library",
   "author": "Mackraken (mackraken2023 at hotmail.com)",
-  "version": (0, 5, 7),
+  "version": (0, 5, 8),
   "blender": (2, 7, 8),
   "api": 60995,
   "location": "Properties > Material",
@@ -114,7 +114,7 @@ def check_index(collection, index):
 
 def send_command(cmd, output="sendmat.py"):
     bin = winpath(bpy.app.binary_path)
-    scriptpath = winpath(os.path.join(matlib_path, output))
+    scriptpath = winpath(os.path.join(bpy.app.tempdir, output))
 
     with open(scriptpath, "w") as f:
       f.write(cmd)



More information about the Bf-extensions-cvs mailing list