get hwid python

Solutions on MaxInterview for get hwid python by the best coders in the world

showing results for - "get hwid python"
Neal
15 Feb 2017
1import subprocess
2import os
3
4def get_id():
5    if 'nt' in os.name:
6        return subprocess.Popen('dmidecode.exe -s system-uuid'.split())
7    else:
8        return subprocess.Popen('hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid'.split())
9