diff options
author | Eugenio Pignataro <info@oscurart.com.ar> | 2019-01-10 13:47:07 +0300 |
---|---|---|
committer | Eugenio Pignataro <info@oscurart.com.ar> | 2019-01-10 13:47:07 +0300 |
commit | 2e9f1abbe7dcee90d3d0b3ce9fc950da9f656fe2 (patch) | |
tree | c6ffe871cd3420fc7c17b85414bf6db3c652c20f | |
parent | b410a70fa9ba09bf9c1091d87f38f0ed8dae4895 (diff) |
Fix Batch Maker for folders with spaces
-rw-r--r-- | oscurart_tools/render/batch_maker.py | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |