Skip to content

Commit

Permalink
Ensure id is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit9126 committed Nov 10, 2023
1 parent fe01b6b commit 33c46e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machineid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def id(winregistry: bool = True) -> str:
"""
id returns the platform specific device GUID of the current host OS.
"""

id = None
if platform == 'darwin':
id = __exec__("ioreg -d2 -c IOPlatformExpertDevice | awk -F\\\" '/IOPlatformUUID/{print $(NF-1)}'")
elif platform == 'win32' or platform == 'cygwin' or platform == 'msys':
Expand Down

0 comments on commit 33c46e8

Please sign in to comment.