diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-27 10:03:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-27 10:03:23 +0400 |
commit | 3b5ab077208996850268798ac9c76421bf2fa908 (patch) | |
tree | c6ed1eae6162cb6d1a7ceef40d57004d11abf9f4 /game_engine_save_as_runtime.py | |
parent | d232c42578cff60c894c70988be615c46e5a0253 (diff) |
another small fix for people that use blend in their path name
Diffstat (limited to 'game_engine_save_as_runtime.py')
-rw-r--r-- | game_engine_save_as_runtime.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/game_engine_save_as_runtime.py b/game_engine_save_as_runtime.py index f600bd5d..36916902 100644 --- a/game_engine_save_as_runtime.py +++ b/game_engine_save_as_runtime.py @@ -201,9 +201,8 @@ class SaveAsRuntime(bpy.types.Operator): def menu_func(self, context): - ext = '.app' if sys.platform == 'darwin' else os.path.splitext(bpy.app.binary_path)[-1] - default_blend_path = bpy.data.filepath.replace(".blend", ext) + default_blend_path = bpy.path.ensure_ext(bpy.data.filepath, ext) self.layout.operator(SaveAsRuntime.bl_idname, text=SaveAsRuntime.bl_label).filepath = default_blend_path |