On 28/04/2010 14:23, Mike Driscoll wrote:

Sorry for the delay in checking this out. I was out of the office
yesterday. Your code almost worked for reading the key, but I get a
tuple back:

[goes back to check what he wrote...]

That's why my code does this (note the nearly-invisible
underscore before the equals), discarding the datatype
value which is the second item of the tuple returned:

username, _ = _winreg.QueryValueEx (k, "UserName")

TJG
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to