--- blender/source/blender/python/intern/bpy_interface.c 2009-08-15 13:35:16.974227385 +0200 +++ blender/source/blender/python/intern/bpy_interface.c 2009-08-15 13:37:00.120228302 +0200 @@ -242,6 +242,11 @@ Py_Initialize( ); // PySys_SetArgv( argc, argv); // broken in py3, not a huge deal + + /* Sanitize sys.path to prevent relative imports loading modules in + * the current working directory */ + PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)"); + /* sigh, why do python guys not have a char** version anymore? :( */ { int i;