I have just solved my own problem thanks to this article:
Embedding Python in Multi-Threaded C/C++ Applications
>From: "Fabien Royer" <fabien_royer@...>
>Subject: [Webware-discuss] Embedded WebWare, Python threads...
>Date: Tue, 17 Sep 2002 16:25:34 -0400
>I'm currently building an application in which I needed to embed WebWare in
>a DLL. This Dll serves multiple purposes: it exposes the object model of
>the application so that PSP scripts can call into it (done as a built-in
>Python extension module), it acts as an adapter redirecting the web server
>requests to the app server and it embeds a Python interpreter used to
>launch and control the WebWare app server.
Send and receive Hotmail on your mobile device: http://mobile.msn.com
Get latest updates about Open Source Projects, Conferences and News.