[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2191] trunk/py/scripts/addons/ game_engine_save_as_runtime.py: fix [#27995] phyton32.dll caused "Appcrash" => Runtime crashes
Campbell Barton
ideasman42 at gmail.com
Thu Jul 28 11:25:10 CEST 2011
Revision: 2191
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2191
Author: campbellbarton
Date: 2011-07-28 09:25:10 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
fix [#27995] phyton32.dll caused "Appcrash" => Runtime crashes
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-28 08:27:16 UTC (rev 2190)
+++ trunk/py/scripts/addons/game_engine_save_as_runtime.py 2011-07-28 09:25:10 UTC (rev 2191)
@@ -40,8 +40,12 @@
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):
More information about the Bf-extensions-cvs
mailing list