Merged changes in the trunk up to revision 28536.
[blender.git] / source / blender / python / intern / bpy.c
index 439607a414bf79aa4bb585f04356db67eef8a512..b61c5b2d721efed51537accadd328e8e4762147e 100644 (file)
@@ -98,12 +98,15 @@ void BPy_init_modules( void )
        /* Needs to be first since this dir is needed for future modules */
        char *modpath= BLI_gethome_folder("scripts/modules", BLI_GETHOME_ALL);
        if(modpath) {
+               // printf("bpy: found module path '%s'.\n", modpath);
                PyObject *sys_path= PySys_GetObject("path"); /* borrow */
                PyObject *py_modpath= PyUnicode_FromString(modpath);
                PyList_Insert(sys_path, 0, py_modpath); /* add first */
                Py_DECREF(py_modpath);
        }
-       
+       else {
+               printf("bpy: couldnt find 'scripts/modules', blender probably wont start.\n");
+       }
        /* stand alone utility modules not related to blender directly */
        Geometry_Init();
        Mathutils_Init();