diff options
author | Tom Musgrove <LetterRip@gmail.com> | 2010-03-07 05:38:15 +0300 |
---|---|---|
committer | Tom Musgrove <LetterRip@gmail.com> | 2010-03-07 05:38:15 +0300 |
commit | 8e35d91985e6cede162cf1437b9cf7e5bc28fa21 (patch) | |
tree | 6fc4815bf787f283053ed2f56785252243231373 /release/scripts/op/image.py | |
parent | d6a28f438fd3eca829344f2fd47f0f79aab70985 (diff) |
ok now all 3 major platforms should work
Diffstat (limited to 'release/scripts/op/image.py')
-rw-r--r-- | release/scripts/op/image.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/release/scripts/op/image.py b/release/scripts/op/image.py index b173aa95eb8..469982c0c5e 100644 --- a/release/scripts/op/image.py +++ b/release/scripts/op/image.py @@ -22,6 +22,7 @@ import bpy 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 @@ class ProjectEdit(bpy.types.Operator): 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 |