[Tutor] winreg question
Terry Carroll
carroll at tjc.com
Fri Dec 22 23:21:43 CET 2006
On Fri, 22 Dec 2006, Terry Carroll wrote:
> On Fri, 22 Dec 2006, Toon Pieton wrote:
>
> > I'm trying to connect to a certain key in my registery using winreg.
>
> I don't know winreg, but I know of _winreg; Same thing? (I'm on
> Activestate Python 2.4).
Ah, I see winreg is no doubt the third-party module described here:
http://www.rutherfurd.net/python/winreg/index.html
Based on this, I think what you want to do is:
import winreg
PartyPokerKey = Key(
winreg.HKCU,
"Software\\PartyGaming\\PartyPoker"
)
PartyPokerAppPath = PartyPokerKey.values["AppPath"]
I can't be sure, though, because I don't have winreg installed to try it
out.
More information about the Tutor
mailing list