[python-win32] com, CreateObject, and py2exe

2011-02-23 Thread Bill Purcell
I am trying to expose a couple Numpy functions to excel. Namley Numpy.linalg.inv and Numpy.array.dot. I have successfully accessed the following com server from within excel with CreateObject test_com.py ===

Re: [python-win32] com, CreateObject, and py2exe

2011-02-23 Thread Mark Hammond
On 24/02/2011 11:25 AM, Bill Purcell wrote: ... I then have a function in VBA inside excel which accesses this server with Obj = CreateObject("Nevco.Modules"). I would like to share this code with a couple coworkers who are not interested in learning python, so I would like to create an executa

Re: [python-win32] com, CreateObject, and py2exe

2011-02-23 Thread Bill Purcell
On 240211-12:29, Mark Hammond wrote: > I think there might be a misconception here - the if > name=='__main__' block is *only* doing registration and > unregistration - the COM object is not running in that process. > Excel will be loading the COM object in-process and manage its > lifetime itself.

Re: [python-win32] com, CreateObject, and py2exe

2011-02-23 Thread Mark Hammond
On 24/02/2011 1:32 PM, Bill Purcell wrote: On 230211-20:05, Bill Purcell wrote: On 240211-12:29, Mark Hammond wrote: Check out the win32com\Demos directory - but AFAIK, the excel samples there haven't been tested with recent versions of excel. I am looking at excelAddin.py. I am wondering if

Re: [python-win32] com, CreateObject, and py2exe

2011-02-23 Thread Bill Purcell
On 230211-20:05, Bill Purcell wrote: > On 240211-12:29, Mark Hammond wrote: > > Check out the win32com\Demos directory - but AFAIK, the excel > > samples there haven't been tested with recent versions of excel. I am looking at excelAddin.py. I am wondering if it would be possible to register func