[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31949] trunk/blender/source/blender/ python/intern/bpy_interface.c: Don't do weird PYTHONPATH juggling anymore.

Nathan Letwory nathan at letworyinteractive.com
Wed Sep 15 17:29:32 CEST 2010


Revision: 31949
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31949
Author:   jesterking
Date:     2010-09-15 17:29:31 +0200 (Wed, 15 Sep 2010)

Log Message:
-----------
Don't do weird PYTHONPATH juggling anymore. Debug build crash doesn't happen anymore since proper libs have been committed.

Hopefully this helps in cases where people have PYTHONPATH set on their system to an incompatible Python version, which can result in crashes.

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	2010-09-15 14:50:14 UTC (rev 31948)
+++ trunk/blender/source/blender/python/intern/bpy_interface.c	2010-09-15 15:29:31 UTC (rev 31949)
@@ -170,15 +170,7 @@
 	/* cmake/MSVC debug build crashes without this, why only
 	   in this case is unknown.. */
 	{
-		char *envpath = getenv("PYTHONPATH");
-
-		if(envpath && envpath[0]) {
-			char *newenvpath = BLI_sprintfN("%s;%s", py_path_bundle, envpath);
-			BLI_setenv("PYTHONPATH", newenvpath);
-			MEM_freeN(newenvpath);
-		}
-		else
-			BLI_setenv("PYTHONPATH", py_path_bundle);	
+		BLI_setenv("PYTHONPATH", py_path_bundle);	
 	}
 #endif
 





More information about the Bf-blender-cvs mailing list