[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1076] contrib/py/scripts/addons/ game_engine_save_as_runtime.py: * Fixed a bug where the script wouldn' t find the player on Linux systems unless run from the terminal

Mitchell Stokes mogurijin at gmail.com
Wed Sep 22 07:16:48 CEST 2010


Revision: 1076
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1076
Author:   moguri
Date:     2010-09-22 07:16:48 +0200 (Wed, 22 Sep 2010)

Log Message:
-----------
  * Fixed a bug where the script wouldn't find the player on Linux systems unless run from the terminal

Modified Paths:
--------------
    contrib/py/scripts/addons/game_engine_save_as_runtime.py

Modified: contrib/py/scripts/addons/game_engine_save_as_runtime.py
===================================================================
--- contrib/py/scripts/addons/game_engine_save_as_runtime.py	2010-09-21 20:17:23 UTC (rev 1075)
+++ contrib/py/scripts/addons/game_engine_save_as_runtime.py	2010-09-22 05:16:48 UTC (rev 1076)
@@ -20,7 +20,7 @@
     "name": "Save As Runtime",
     "author": "Mitchell Stokes (Moguri)",
     "version": (0,2),
-    "blender": (2, 5, 3),
+    "blender": (2, 5, 4),
     "api": 31667,
     "location": "File > Export",
     "description": "Bundle a .blend file with the Blenderplayer",
@@ -108,7 +108,10 @@
     elif os.name == "mac":
         ext = ".app"
     
-    player_path = StringProperty(name="Player Path", description="The path to the player to use", default=sys.argv[0].replace("blender"+ext, "blenderplayer"+ext))
+    if not ext:
+        player_path = StringProperty(name="Player Path", description="The path to the player to use", default=sys.argv[0]+'player')
+    else:
+        player_path = StringProperty(name="Player Path", description="The path to the player to use", default=sys.argv[0].replace("blender"+ext, "blenderplayer"+ext))
     filepath = StringProperty(name="Output Path", description="Where to save the runtime", default="")
     
     def execute(self, context):




More information about the Bf-extensions-cvs mailing list