Fix external image editor (needs to be a list, otherwise extends adds each character...
authorMartin Poirier <theeth@yahoo.com>
Mon, 12 Apr 2010 02:43:17 +0000 (02:43 +0000)
committerMartin Poirier <theeth@yahoo.com>
Mon, 12 Apr 2010 02:43:17 +0000 (02:43 +0000)
Note: The default value ("start") on windows doesn't work. Start is not a real program.

release/scripts/op/image.py

index e043e7dad612de8ecac022c668ed5f719eba0720..45ccda1396b5a2938b60e825a412c87aaef118d2 100644 (file)
@@ -50,6 +50,8 @@ class EditExternally(bpy.types.Operator):
                 # and will include a trailing backslash, so we strip it.
                 image_editor.rstrip('\\')
                 image_editor = ["open", "-a", image_editor]
+            else:
+                image_editor = [image_editor]
 
         return image_editor