Commit 09acda91 authored by PoroCYon's avatar PoroCYon Committed by PoroCYon
Browse files

fix failing when LD_LIBRARY_PATH isn't defined in the environment

parent 5a42351a
......@@ -27,7 +27,7 @@ def get_def_libpaths(cc_bin, is32bit):
return get_cc_paths(cc_bin)['libraries']
def find_libs(deflibs, libname):
dirs = os.environ['LD_LIBRARY_PATH'].split(':') + deflibs
dirs = os.environ.get('LD_LIBRARY_PATH','').split(':') + deflibs
for d in dirs:
for f in glob.glob(glob.escape(d + '/' + libname) + '*'): yield f
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment