From f4ba9495c506f462fcad1c7db4d8fa2aae147a6f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 29 Mar 2011 16:12:25 +0000 Subject: 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. --- source/blender/python/generic/bpy_internal_import.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/python/generic/bpy_internal_import.h') 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); -- cgit v1.2.3