Revision: 23190
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23190
Author: campbellbarton
Date: 2009-09-13 20:09:13 +0200 (Sun, 13 Sep 2009)
Log Message:
-----------
use Py_SetPythonHome rather then setting environment vars PYTHONHOME and
PYTHONPATH
Modified Paths:
--------------
trunk/blender/source/blender/python/intern/bpy_interface.c
Modified: trunk/blender/source/blender/python/intern/bpy_interface.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_interface.c 2009-09-13
17:52:36 UTC (rev 23189)
+++ trunk/blender/source/blender/python/intern/bpy_interface.c 2009-09-13
18:09:13 UTC (rev 23190)
@@ -259,8 +259,17 @@
/* set the environment path */
printf("found bundled python: %s\n", py_path_bundle);
+#if 0
BLI_setenv("PYTHONHOME", py_path_bundle);
BLI_setenv("PYTHONPATH", py_path_bundle);
+#endif
+
+ {
+ static wchar_t py_path_bundle_wchar[FILE_MAXDIR];
+
+ mbstowcs(py_path_bundle_wchar, py_path_bundle, FILE_MAXDIR);
+ Py_SetPythonHome(py_path_bundle_wchar);
+ }
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs