From 2e9f1abbe7dcee90d3d0b3ce9fc950da9f656fe2 Mon Sep 17 00:00:00 2001
From: Eugenio Pignataro <info@oscurart.com.ar>
Date: Thu, 10 Jan 2019 07:47:07 -0300
Subject: [PATCH] Fix Batch Maker for folders with spaces

---
 oscurart_tools/render/batch_maker.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oscurart_tools/render/batch_maker.py b/oscurart_tools/render/batch_maker.py
index 07c727d18..5dd007e3a 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))
             
             
 
-- 
GitLab