From a215fb30f4dff7b5d1d6d8cec506ef7a6aba89bd Mon Sep 17 00:00:00 2001
From: Mitchell Stokes <mogurijin@gmail.com>
Date: Sat, 9 Apr 2011 02:14:58 +0000
Subject: [PATCH] Game Engine Save as Runtime:   * On OSX, copy the Python lib
 folder to sit alongside the .app instead of the Unix executable.

---
 game_engine_save_as_runtime.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game_engine_save_as_runtime.py b/game_engine_save_as_runtime.py
index 2ac38c5e5..32904344c 100644
--- a/game_engine_save_as_runtime.py
+++ b/game_engine_save_as_runtime.py
@@ -53,7 +53,7 @@ def WriteAppleRuntime(player_path, output_path, copy_python, overwrite_lib):
     if copy_python:
         print("Copying Python files...", end=" ")
         src = os.path.join(blender_dir, bpy.app.version_string.split()[0], "python", "lib")
-        dst = os.path.join(output_path, "Contents", "MacOS", "lib")
+        dst = os.path.join(output_path, "..")
         
         if os.path.exists(dst):
             if overwrite_lib:
-- 
GitLab