diff -r c17e29454447 Lib/ctypes/util.py --- a/Lib/ctypes/util.py Thu Apr 30 17:37:11 2015 -0400 +++ b/Lib/ctypes/util.py Wed Apr 29 15:33:12 2015 +0200 @@ -191,6 +191,7 @@ else: cmd = 'env LC_ALL=C /usr/bin/crle 2>/dev/null' + path = None for line in os.popen(cmd).readlines(): line = line.strip() if line.startswith('Default Library Path (ELF):'):