Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-21 11:00:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-21 11:00:23 +0400
commit65b238544865128eef3365fa7646fb821087917d (patch)
treefec0c61652deebc09aad1b5425e54363031f198a /source/blender/python/generic
parentc230ce0ac6b2c44c125466a13824988033287300 (diff)
py api integration: __import__(... , level=0)
default changed to work with python3.3
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r--source/blender/python/generic/bpy_internal_import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c
index ad97d741f9b..5999040a2ab 100644
--- a/source/blender/python/generic/bpy_internal_import.c
+++ b/source/blender/python/generic/bpy_internal_import.c
@@ -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);