/* python, will come back */
void BPY_post_start_python() {}
//void BPY_run_python_script() {}
-void BPY_start_python() {}
+//void BPY_start_python() {}
void BPY_do_all_scripts() {}
void BPY_call_importloader() {}
void BPY_do_pyscript() {}
return dict;
}
-static void BPY_start_python( void )
+void BPY_start_python( void )
{
PyThreadState *py_tstate = NULL;
-
+
Py_Initialize( );
//PySys_SetArgv( argc_copy, argv_copy );
}
-static void BPY_end_python( void )
+void BPY_end_python( void )
{
PyGILState_Ensure(); /* finalizing, no need to grab the state */
/* TODO - look into a better way to run a file */
sprintf(pystring, "exec(open(r'%s').read())", fn);
- BPY_start_python();
+ //BPY_start_python();
gilstate = PyGILState_Ensure();
PyGILState_Release(gilstate);
- BPY_end_python();
+ //BPY_end_python();
}
/* before free_blender so py's gc happens while library still exists */
/* needed at least for a rare sigsegv that can happen in pydrivers */
-// BPY_end_python();
+ BPY_end_python();
// fastshade_free_render(); /* shaded view */
free_blender(); /* blender.c, does entire library */