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