fix smoldd.py failing when LD_LIBRARY_PATH isn't defined in the environment

This commit is contained in:
PoroCYon 2020-07-05 20:20:05 +02:00 committed by PoroCYon
parent 5a42351a0e
commit 09acda915d
1 changed files with 1 additions and 1 deletions

View File

@ -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