[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27307]trunk/blender/release/scripts/op/ image.py: ok now all 3 major platformsshould work

Campbell Barton ideasman42 at gmail.com
Sun Mar 7 12:02:51 CET 2010


image editor can now be selected in the user preferences. when thats
not set its calling open form mac, startfile from windows and gimp on
anything else. I cant test these so assume Ill hear complaints if they
dont work.

On Sun, Mar 7, 2010 at 10:56 AM,  <jmsoler at free.fr> wrote:
> As everybody does not use the same version of gimp, an environment variable
> isn't it preferable ?
>
> Selon venomgfx at gmail.com:
>
>> +        if platform == 'win32':
>> +            EDITOR = "C:\\Program Files\\GIMP-2.7\\bin\\gimp-2.7.exe"
>>
>> An absolute path (english an version exclusive (in spanish would be "Archivos
>> de Programa" instead of Program Files)) inside Blender?
>>
>> (Just wondering, maybe was a typo)
>>
>> ------Original Message------
>> From: Tom Musgrove
>> Sender: bf-blender-cvs-bounces at blender.org
>> To: bf-blender-cvs at blender.org
>> ReplyTo: bf-committers at blender.org
>> Subject: [Bf-blender-cvs] SVN commit: /data/svn/bf-blender
>> [27307]trunk/blender/release/scripts/op/ image.py: ok now all 3 major
>> platformsshould work
>> Sent: Mar 7, 2010 00:38
>>
>> Revision: 27307
>>
>>
> http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27307
>> Author:   letterrip
>> Date:     2010-03-07 03:38:15 +0100 (Sun, 07 Mar 2010)
>>
>> Log Message:
>> -----------
>> ok now all 3 major platforms should work
>>
>> 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:14:52 UTC (rev
>> 27306)
>> +++ trunk/blender/release/scripts/op/image.py 2010-03-07 02:38:15 UTC (rev
>> 27307)
>> @@ -22,6 +22,7 @@
>>  import sys as py_sys
>>  platform = py_sys.platform
>>
>> +
>>  class SaveDirty(bpy.types.Operator):
>>      '''Select object matching a naming pattern'''
>>      bl_idname = "image.save_dirty"
>> @@ -55,8 +56,13 @@
>>          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
>>
>>
>>
>> _______________________________________________
>> Bf-blender-cvs mailing list
>> Bf-blender-cvs at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell


More information about the Bf-committers mailing list