From c30149991c9417106577e2d96112b16433910215 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 20 Feb 2011 23:39:29 +0000 Subject: Experimental option to build blender as a python module, rather then blender embedding python. CMake build option WITH_PYTHON_MODULE, will build ./bin/bpy.so This allows 'bpy' to be imported from python or other applications/IDE's which embed python, eg: python -c "import bpy ; bpy.ops.render.render(write_still=True)" This runs in background mode and has similar restrictions to running a script: blender --background --python test.py TODO: - install to site-packages with blender scripts - add support for imp.reload() --- source/blender/python/intern/bpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/intern/bpy.h') diff --git a/source/blender/python/intern/bpy.h b/source/blender/python/intern/bpy.h index 76eef6ea4b9..90f21cb07b1 100644 --- a/source/blender/python/intern/bpy.h +++ b/source/blender/python/intern/bpy.h @@ -22,4 +22,4 @@ * ***** END GPL LICENSE BLOCK ***** */ void BPy_init_modules( void ); - +extern PyObject *bpy_package_py; -- cgit v1.2.3