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

msscript & python: problems accessing objects inserted by msscript->AddObject

P: n/a
I'm implementing a windows application with generic support for
scripting, and I'm using the microsoft script control (msscript).
For vbscript/jscript I'm happy, but with python I got problems
accessing COM objects that have been inserted in the script runtime by
the msscript->AddObject function. Have anybody had similar problems?

To be more specific the code:

Monitor.Echo(logTxt, output)

where 'Monitor' is a COM object aready inserted by
msscript->AddObject(..) results in a runtime error where the top stack
trace shows:

File "C:\PROGRA~1\Python23\lib\site-packages\win32comext\axscript\client\pyscript.py",
line 146, in __getattr__
return self._scriptItem_.subItems[string.lower(attr)].attributeObject
AttributeError: 'NoneType' object has no attribute 'subItems'

Regards,
SIS
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.