Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-28 13:25:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-28 13:25:10 +0400
commit9bfcc84a6e5c2b1bdafb6fddf582b130ade5a424 (patch)
tree9dd16228795ab732e3ceddc7f4df23f5e6218d5c /game_engine_save_as_runtime.py
parent77258389ffc74e23f7cc5f3e16b9f4971d9e8817 (diff)
fix [#27995] phyton32.dll caused "Appcrash" => Runtime crashes
Diffstat (limited to 'game_engine_save_as_runtime.py')
-rw-r--r--game_engine_save_as_runtime.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/game_engine_save_as_runtime.py b/game_engine_save_as_runtime.py
index 4e4a36d5..29b6b9d6 100644
--- a/game_engine_save_as_runtime.py
+++ b/game_engine_save_as_runtime.py
@@ -40,8 +40,12 @@ import shutil
def CopyPythonLibs(dst, overwrite_lib):
import sysconfig
src = sysconfig.get_paths()['platstdlib']
- # X.XX/python/lib --> X.XX/python/lib/pythonX.X
- dst = os.path.join(dst, os.path.basename(src))
+ # Unix 'platstdlib' excludes 'lib', eg:
+ # '/usr/lib/python3.3' vs 'C:\blender\bin\2.58\python\Lib'
+ # in both cases we have to end up with './2.58/python/lib'
+ if sys.platform[:3] != "win":
+ dst = os.path.join(dst, os.path.basename(src))
+
if os.path.exists(src):
write = False
if os.path.exists(dst):