[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2066] trunk/py/scripts/addons/ game_engine_save_as_runtime.py: another small fix for people that use blend in their path name
Campbell Barton
ideasman42 at gmail.com
Mon Jun 27 08:03:24 CEST 2011
Revision: 2066
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2066
Author: campbellbarton
Date: 2011-06-27 06:03:23 +0000 (Mon, 27 Jun 2011)
Log Message:
-----------
another small fix for people that use blend in their path name
Modified Paths:
--------------
trunk/py/scripts/addons/game_engine_save_as_runtime.py
Modified: trunk/py/scripts/addons/game_engine_save_as_runtime.py
===================================================================
--- trunk/py/scripts/addons/game_engine_save_as_runtime.py 2011-06-27 06:00:11 UTC (rev 2065)
+++ trunk/py/scripts/addons/game_engine_save_as_runtime.py 2011-06-27 06:03:23 UTC (rev 2066)
@@ -201,9 +201,8 @@
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
More information about the Bf-extensions-cvs
mailing list