remove math and m module names from python driver namespace. (all math functions are merged into the local namespace)

This commit is contained in:
2010-06-25 21:24:59 +00:00
parent c2db42adaa
commit 54e6fc1519

View File

@@ -59,10 +59,6 @@ static int bpy_pydriver_create_dict(void)
mod = PyImport_ImportModule("math");
if (mod) {
PyDict_Merge(d, PyModule_GetDict(mod), 0); /* 0 - dont overwrite existing values */
/* Only keep for backwards compat! - just import all math into root, they are standard */
PyDict_SetItemString(d, "math", mod);
PyDict_SetItemString(d, "m", mod);
Py_DECREF(mod);
}