From 3b5ab077208996850268798ac9c76421bf2fa908 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 27 Jun 2011 06:03:23 +0000 Subject: [PATCH] another small fix for people that use blend in their path name --- game_engine_save_as_runtime.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game_engine_save_as_runtime.py b/game_engine_save_as_runtime.py index f600bd5de..369169023 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 -- GitLab