diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-29 20:12:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-29 20:12:25 +0400 |
commit | f4ba9495c506f462fcad1c7db4d8fa2aae147a6f (patch) | |
tree | 3fdb8aef60b9187e898f6de6a64495b5aa1e7a98 /source/blender/python/generic/bpy_internal_import.h | |
parent | c0ab420a73d51ff7f8fc2bb305128dfbb57ac487 (diff) |
fix [#26667] Can't import scripts when using blenderplayer
- move import override initialization to bpy_internal_import.c so the player and blender can both call.
- remove ineffectual & unused sandboxing code.
Diffstat (limited to 'source/blender/python/generic/bpy_internal_import.h')
-rw-r--r-- | source/blender/python/generic/bpy_internal_import.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/generic/bpy_internal_import.h b/source/blender/python/generic/bpy_internal_import.h index 7aabdcf3bf2..0ef31229f8d 100644 --- a/source/blender/python/generic/bpy_internal_import.h +++ b/source/blender/python/generic/bpy_internal_import.h @@ -47,6 +47,8 @@ struct Text; +void bpy_import_init(PyObject *builtins); + PyObject* bpy_text_import(struct Text *text); PyObject* bpy_text_import_name(char *name, int *found); PyObject* bpy_text_reimport(PyObject *module, int *found); |