Index: image_edit.py =================================================================== --- image_edit.py (revision 17382) +++ image_edit.py (working copy) @@ -53,7 +53,7 @@ from Blender import Image, sys, Draw, Registry try: - import subprocess + import subprocess, shlex import sys as py_sys platform = py_sys.platform except: @@ -126,13 +126,9 @@ # ------------------------------- - # evil trick, temp replace spaces so we can allow spaces in filenames - appstring = appstring.replace(' ', '\t') - appstring = appstring.replace('%f', imageFileName) - appstring = appstring.split('\t') print 'Editing image with command "%s"' % appstring - p = subprocess.Popen(appstring) + p = subprocess.Popen(shlex.split(appstring)) def main():