From d232c42578cff60c894c70988be615c46e5a0253 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 27 Jun 2011 06:00:11 +0000
Subject: [PATCH] get the version string a slightly better way

---
 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 281dd0756..f600bd5de 100644
--- a/game_engine_save_as_runtime.py
+++ b/game_engine_save_as_runtime.py
@@ -52,7 +52,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")
+        src = os.path.join(blender_dir, "%d.%d" % bpy.app.version[:2], "python", "lib")
         dst = os.path.join(output_path, "..")
         
         if os.path.exists(dst):
-- 
GitLab