win32com question

Mark Hammond mhammond at skippinet.com.au
Wed Dec 11 17:27:06 EST 2002


Uwe Schmitt wrote:
> Hi,
> 
> I'm writing some code which should be available for import and as
> a com object. Now I want to distinguish if the script is run as
> com server or via import. Are there any flags/... available for this ?
> 
> Greetings, Uwe

Nope, and off the top of my head I can't work out how you could tell. 
You could examine the callstack in your constructor, but that sounds 
pretty hacky.

Mark.




More information about the Python-list mailing list