[Bf-extensions-cvs] [2e9f1abb] master: Fix Batch Maker for folders with spaces

Eugenio Pignataro noreply at git.blender.org
Thu Jan 10 11:47:14 CET 2019


Commit: 2e9f1abbe7dcee90d3d0b3ce9fc950da9f656fe2
Author: Eugenio Pignataro
Date:   Thu Jan 10 07:47:07 2019 -0300
Branches: master
https://developer.blender.org/rBA2e9f1abbe7dcee90d3d0b3ce9fc950da9f656fe2

Fix Batch Maker for folders with spaces

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

M	oscurart_tools/render/batch_maker.py

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

diff --git a/oscurart_tools/render/batch_maker.py b/oscurart_tools/render/batch_maker.py
index 07c727d1..5dd007e3 100644
--- a/oscurart_tools/render/batch_maker.py
+++ b/oscurart_tools/render/batch_maker.py
@@ -27,9 +27,9 @@ def batchMaker(BIN):
 
     with open(SHFILE, "w") as FILE:
         if not BIN:
-            FILE.writelines("%s -b %s --python-text Text -a" % (bpy.app.binary_path,bpy.data.filepath))
+            FILE.writelines(r"'%s' -b '%s' --python-text Text -a" % (bpy.app.binary_path,bpy.data.filepath))
         else:
-            FILE.writelines("blender -b %s --python-text Text -a" % (bpy.data.filepath))
+            FILE.writelines(r"blender -b '%s' --python-text Text -a" % (bpy.data.filepath))



More information about the Bf-extensions-cvs mailing list