[python-win32] Using Properties with arugments (or optional arguments)
Paul Molodowitch
elrond79 at gmail.com
Fri Jun 25 03:02:03 CEST 2010
Hi all - I was wondering what the proper way to access properties on
COM objects which take arguments (or optional arguments).
As an example, it's easy to get a 'System' WshEnvironment object:
shell = win32com.client.Dispatch("WScript.Shell")
sysEnv = shell.Environment
print sysEnv['PATH']
However, I can find no way to get a 'Volatile' environment object,
since the User/System/Volatile/Process argument for the Environment
property is optional.
How would I do this?
- Paul
More information about the python-win32
mailing list