Merged changes in the trunk up to revision 26439.
[blender.git] / source / blender / python / intern / bpy_interface.c
index af062e66cb7e1b7c92f23cca678ce1c7a69e0c87..142b5f0788a7e1d41a55d1f0ae3e2f848536bdb6 100644 (file)
@@ -238,6 +238,7 @@ static void bpy_init_modules( void )
                sprintf(tmpstr, "%d.%02d (sub %d)", BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION);
                PyModule_AddStringConstant(mod, "_VERSION_STR",  tmpstr);
                PyModule_AddStringConstant(mod, "_BINPATH",  bprogname);
+               PyModule_AddIntConstant(mod, "_DEBUG",  G.f & G_DEBUG ? 1:0);
        }
 
        /* add our own modules dir, this is a python package */