How to make a python file to a DLL or COM object?
Larry Bates
larry.bates at websafe.com
Mon Nov 20 12:54:54 EST 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.
http://www.py2exe.org/old/
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):
# setup.py
from distutils.core import setup
import py2exe
setup(com_server=["win32com.server.interp"])
-Larry
More information about the Python-list
mailing list