Full path to ioreg in case the PATH does not include /usr/sbin

This commit is contained in:
Graham Pugh 2019-08-06 15:46:40 +02:00
parent e6222ad3f3
commit 0822b3e46f

View File

@ -63,7 +63,7 @@ SEED_CATALOGS_PLIST = (
def get_board_id(): def get_board_id():
'''Gets the local system board ID''' '''Gets the local system board ID'''
ioreg_cmd = ['ioreg', '-p', 'IODeviceTree', '-r', '-n', '/', '-d', '1'] ioreg_cmd = ['/usr/sbin/ioreg', '-p', 'IODeviceTree', '-r', '-n', '/', '-d', '1']
try: try:
ioreg_output = subprocess.check_output(ioreg_cmd).splitlines() ioreg_output = subprocess.check_output(ioreg_cmd).splitlines()
for line in ioreg_output: for line in ioreg_output: