diff -r 8ab8f5259f09 Lib/ctypes/util.py --- a/Lib/ctypes/util.py Wed Apr 27 23:13:46 2016 +0300 +++ b/Lib/ctypes/util.py Thu Apr 28 17:23:46 2016 +0800 @@ -185,6 +185,7 @@ cmd = 'env LC_ALL=C /usr/bin/crle 2>/dev/null' with contextlib.closing(os.popen(cmd)) as f: + paths = None for line in f.readlines(): line = line.strip() if line.startswith('Default Library Path (ELF):'):