[python-win32] Re: how to load 2 python COM DLLs in single app?

Thomas Heller theller at python.net
Fri Oct 22 16:54:37 CEST 2004


Niki Spahiev <niki at vintech.bg> writes:

> Thomas Heller wrote:
>
>> Unfortunately, the latest released py2exe 0.5.3 doesn't yet contain
>> Mark's thread state fixes.
>
> I tried run_dll.c v1.9 it's step forward (no crash) but second DLL
> replaces sys.path instead of adding to it.

If you would like to work on a patch, it seems that the
init_with_instance() function in start.c needs to be changed, depending
on whether Python is already initialized or not.

But this may open a can of worms.

The only really clean way to do it would be to let py2exe create
single-file com servers, which even don't rely on a separate python.dll.

Thomas



More information about the Python-win32 mailing list