Fix Batch Maker for folders with spaces

This commit is contained in:
Eugenio Pignataro 2019-01-10 07:47:07 -03:00
parent b410a70fa9
commit 2e9f1abbe7
1 changed files with 2 additions and 2 deletions

View File

@ -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))