changing python script on-the-fly for ActiveX/COM object (win32com)

J

jd

I have implemented a COM object in Python and I would like
to be able to change the script without stopping and
restarting the application that's using the COM object. Is
there a way to do this? (I can change the program that
calls the COM object if needed.)

Thanks...

-- jeff
 
F

Fuzzyman

jd said:
I have implemented a COM object in Python and I would like
to be able to change the script without stopping and
restarting the application that's using the COM object. Is
there a way to do this? (I can change the program that
calls the COM object if needed.)

I have no idea about the intracacies of COM, but...

You'll probably have to at least implement a Python stub that doesn't
change. You can implement everything else in modules.

You can override the modules and call 'reload' to force the newer
versions to be used.

I don't know if that would rebind external references to objects
*within* the module (you'd need to experiment or wait for a more
knowledgeable opinion).

You'd also have to at least *suspend* operations whilst the update
takes place.

All the best,


Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top