As everybody does not use the same version of gimp, an environment variable
isn't it preferable ?

Selon venom...@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-boun...@blender.org
> To: bf-blender-...@blender.org
> ReplyTo: bf-committers@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-...@blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to