Skip to content

Commit 168723d

Browse files
committed
Fix machine code on linux
1 parent 5783ef9 commit 168723d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

licensing/methods.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def GetMachineCode():
7272
elif "Mac" in platform.platform():
7373
res = HelperMethods.start_process(["system_profiler","SPHardwareDataType"]).decode('utf-8')
7474
HelperMethods.get_SHA256(res[res.index("UUID"):].strip())
75+
elif "Linux" in platform.platform():
76+
return HelperMethods.get_SHA256(HelperMethods.start_process(["dmidecode", "-s", "system-uuid"]))
7577
else:
7678
return HelperMethods.get_SHA256(HelperMethods.start_process(["dmidecode", "-s", "system-uuid"]).decode('utf-8'))
7779

0 commit comments

Comments
 (0)