| Revision: | 8 |
| Committed: | Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges |
| Content type: | text/x-python |
| Original Path: | Python/NinoCode/learning/registry_test.py |
| File size: | 300 byte(s) |
| Log Message: | Initial Import |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | ninoborges | 8 | #Registry test |
| 2 | #12.10.01 | ||
| 3 | |||
| 4 | import _winreg, sys | ||
| 5 | key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "Software\\Python\\PythonCore\\" + sys.winver + "\\PythonPath") | ||
| 6 | #_winreg.QueryValue(key, "") 'f:\\src\python-cvs\\lib;f:\\src\\python-cvs\\pcbuild' | ||
| 7 | _winreg.EnumKey(key, 0) | ||
| 8 | _winreg.EnumKey(key, 1) |