How to make a python file to a DLL or COM object?

Larry Bates larry.bates at
Mon Nov 20 18:54:54 CET 2006

many_years_after wrote:
> Hi:
>   some one said we can make a python file to an COM object through
> py2exe , but I  haven't got the method. Could any one who knows tell me
> how to do?
> Thanks

You may want to take a look here.  See COM servers section.

COM servers
COM servers are built by passing a com_server keyword argument to the setup
function, again the value must be a list of Python module names containing one
or more COM server classes (identified by their _reg_progid_ attribute):

from distutils.core import setup
import py2exe



More information about the Python-list mailing list