By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,035 Members | 1,995 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,035 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Nov 20 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
At Sunday 19/11/2006 23:31, many_years_after wrote:
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?
Download the win32 extensions and see the examples.
http://sourceforge.net/projects/pywin32/
--
Gabriel Genellina
Softlab SRL

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ˇgratis!
ˇAbrí tu cuenta ya! - http://correo.yahoo.com.ar
Nov 20 '06 #2

P: n/a
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
Nov 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.