py api integration: __import__(... , level=0)

default changed to work with python3.3
This commit is contained in:
2012-05-21 07:00:23 +00:00
parent c230ce0ac6
commit 65b2385448

View File

@@ -226,7 +226,7 @@ static PyObject *blender_import(PyObject *UNUSED(self), PyObject *args, PyObject
char *name;
int found = 0;
PyObject *globals = NULL, *locals = NULL, *fromlist = NULL;
int level = -1; /* relative imports */
int level = 0; /* relative imports */
PyObject *newmodule;
//PyObject_Print(args, stderr, 0);