3 * ***** BEGIN GPL LICENSE BLOCK *****
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
20 * All rights reserved.
22 * This is a new part of Blender.
24 * Contributor(s): Willian P. Germano, Campbell Barton
26 * ***** END GPL LICENSE BLOCK *****
29 /* Note, the BGE needs to use this too, keep it minimal */
31 #ifndef EXPP_bpy_import_h
32 #define EXPP_bpy_import_h
35 #include "compile.h" /* for the PyCodeObject */
36 #include "eval.h" /* for PyEval_EvalCode */
38 PyObject *importText( char *name, int *found );
39 PyObject *reimportText( PyObject *module, int *found );
40 void importClearUserModules( void ); /* Clear user modules */
41 extern PyMethodDef bpy_import[];
42 extern PyMethodDef bpy_reload[];
44 /* The game engine has its own Main struct, if this is set search this rather then G.main */
45 struct Main *bpy_import_main_get(void);
46 void bpy_import_main_set(struct Main *maggie);
49 #endif /* EXPP_bpy_import_h */