diff -r f48f302f54aa Lib/uuid.py --- a/Lib/uuid.py Sun Dec 01 11:04:17 2013 +0100 +++ b/Lib/uuid.py Sun Dec 01 17:10:17 2013 +0200 @@ -312,10 +312,10 @@ return int((self.int >> 76) & 0xf) def _find_mac(command, args, hw_identifiers, get_index): - import os - for dir in ['', '/sbin/', '/usr/sbin']: + import os, shutil + for dir in ['', '/sbin', '/usr/sbin']: executable = os.path.join(dir, command) - if not os.path.exists(executable): + if shutil.which(executable) is None: continue try: