extending python with a C-written dll

Diez B. Roggisch deetsNOSPAM at web.de
Mon Dec 20 11:29:07 EST 2004


> The fact is that the python interpreter I use is not a standard one
> It is a python interpreter delivered within a software named Blender.
> I don't know whether it is possible or not to add ctypes to it ..(I
> don't even have a python shell to perform the setup)
> 
> I'm sure it is possible to use dll-built with it ..
> So please .. can you tell me where I can find Py_BuildValue and
> Py_InitModule4 to link with ?

I doubt that adding new modules as dlls is easier than incorporating
pure-python ones or a mixture of both - as ctypes most probably is. After
all, its pythons module loading mechanism that kicks in for all cases.

If ctypes suits your needs outside of blender, I'd go for trying to
incorporate it into the blender interpreter.

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list