distribute win32 code

Ulrich Schreiner ulrich.schreiner at innuendo.de
Sat May 13 13:06:25 EDT 2000


i wrote a nice installscript for a complex product in python and used
the win32 extensions for the NT-dist to write some values in the
registry an to create some shortcuts. everythin fine.

i bundled python into the distribution because our customer does not
have python installed (and i dont think he wants python on his
production machine). everything seems to be ok, but there are problems
with the COM support. the win32api is available if the needed DLL (i
think its pywintypesXX.dll) is in the path. but to use COM there is an
additional DLL (pythoncomXX.dll). it does not work to put this dll in
the path; it only works if it is registered as an python extension in
the registry (to be honest: i encountered some very strange problems
when this dll wasnt in the system32-directory too, some sort of missing
entry-point in the dll; when i moved it back and recreated the registry
settings everything worked.).

well, normally all of these DLLs are in the system32-directory but you
can copy them to another location as long as this location is in the
PATH. win32api works fine, but COM does not!

question: is it possible to create a win32 python distr with COM support
which runs "out-of-the-box"? only with some sort of path-settings and NO
registry-settings? 

if the answer is "no" ... would it be a great problem to do this?

feel free to email me.

thanks
</usc>



More information about the Python-list mailing list