added imports to templates

This commit is contained in:
Campbell Barton 2010-07-08 16:24:24 +00:00
parent 90e1119619
commit aff6b6885f
6 changed files with 4 additions and 2 deletions

@ -1,4 +1,3 @@
import bpy
def write_some_data(context, filepath, use_some_setting):

@ -1,3 +1,4 @@
import bpy
from bpy.props import *
class ModalOperator(bpy.types.Operator):

@ -1,3 +1,4 @@
import bpy
import bgl
import blf

@ -1,3 +1,4 @@
import bpy
from mathutils import Vector
from bpy.props import FloatVectorProperty

@ -1,3 +1,4 @@
import bpy
def main(context):
obj = context.active_object

@ -150,7 +150,6 @@ void BPY_update_modules( void )
*****************************************************************************/
static PyObject *CreateGlobalDictionary( bContext *C, const char *filename )
{
PyObject *mod;
PyObject *item;
PyObject *dict = PyDict_New( );
PyDict_SetItemString( dict, "__builtins__", PyEval_GetBuiltins( ) );