Skip to content

Commit

Permalink
actually include registry path for machine guid
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbugs committed Oct 12, 2019
1 parent a32ec57 commit a0c5630
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion augpathlib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def sysidpath(ignore_options=False, path_class=Path):


def machine_guid(ignore_options=False, path_class=Path):
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, "", 0, winreg.KEY_READ | winreg.KEY_WOW64_64KEY)
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE,
"SOFTWARE\\Microsoft\\Cryptography", 0,
winreg.KEY_READ | winreg.KEY_WOW64_64KEY)
guid, status = winreg.QueryValueEx(key, 'MachineGuid')
return guid

Expand Down

0 comments on commit a0c5630

Please sign in to comment.