[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27304] trunk/blender/release/scripts/op/ image.py: allow darwin and windows users to use the view based image editing also, temporary hard coded workaround till it is setable via prefs

Tom Musgrove LetterRip at gmail.com
Sun Mar 7 03:08:45 CET 2010


Revision: 27304
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27304
Author:   letterrip
Date:     2010-03-07 03:08:43 +0100 (Sun, 07 Mar 2010)

Log Message:
-----------
allow darwin and windows users to use the view based image editing also, temporary hard coded workaround till it is setable via prefs

Modified Paths:
--------------
    trunk/blender/release/scripts/op/image.py

Modified: trunk/blender/release/scripts/op/image.py
===================================================================
--- trunk/blender/release/scripts/op/image.py	2010-03-07 02:04:30 UTC (rev 27303)
+++ trunk/blender/release/scripts/op/image.py	2010-03-07 02:08:43 UTC (rev 27304)
@@ -54,7 +54,12 @@
         import subprocess
 
         EXT = "tga" # until we have a way to save as another format!
-        EDITOR = "gimp" # until we have a way to set a default image edior
+        if platform == 'win32':
+            EDITOR = "C:\\Program Files\\GIMP-2.7\\bin\\gimp-2.7.exe"
+        elif platform == 'darwin':
+            EDITOR = "open"
+        else:
+            EDITOR = "gimp" # until we have a way to set a default image edior            
         
         for image in bpy.data.images:
             image.tag = True





More information about the Bf-blender-cvs mailing list