467,130 Members | 1,263 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,130 developers. It's quick & easy.

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

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
  • viewed: 1276
Share:
2 Replies
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
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.

Similar topics

7 posts views Thread by Lowell Kirsh | last post: by
10 posts views Thread by Andrew Dalke | last post: by
10 posts views Thread by Xah Lee | last post: by
2 posts views Thread by Adam Smith | last post: by
28 posts views Thread by Steven Bethard | last post: by
7 posts views Thread by Steven Bethard | last post: by
3 posts views Thread by Terry Hancock | last post: by
5 posts views Thread by abcd | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.