[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2091] trunk/py/scripts/addons/ game_engine_save_as_runtime.py: Save as Runtime: We don' t need to copy Python for OS X since on OS X the blenderplayer is built with Python already bundled in the .app folder.

Mitchell Stokes mogurijin at gmail.com
Tue Jul 5 02:52:41 CEST 2011


Revision: 2091
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2091
Author:   moguri
Date:     2011-07-05 00:52:40 +0000 (Tue, 05 Jul 2011)
Log Message:
-----------
Save as Runtime: We don't need to copy Python for OS X since on OS X the blenderplayer is built with Python already bundled in the .app folder.

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-07-04 17:22:49 UTC (rev 2090)
+++ trunk/py/scripts/addons/game_engine_save_as_runtime.py	2011-07-05 00:52:40 UTC (rev 2091)
@@ -66,14 +66,7 @@
     
     bpy.ops.wm.save_as_mainfile(filepath=output_path+"/Contents/Resources/game.blend", copy=True)
     
-    # Copy bundled Python
-    blender_dir = os.path.dirname(bpy.app.binary_path)
-    
-    if copy_python:
-        print("Copying Python files...", end=" ")
-        dst = os.path.join(output_path, "..")
-        CopyPythonLibs(dst, overwrite_lib)
-        print("done")
+    # Python doesn't need to be copied for OS X since it's already inside blenderplayer.app
 
 
 def WriteRuntime(player_path, output_path, copy_python, overwrite_lib, copy_dlls):



More information about the Bf-extensions-cvs mailing list