Browse Source

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

pull/16/head
PoroCYon 1 year ago
committed by PoroCYon
parent
commit
09acda915d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/smoldd.py

+ 1
- 1
src/smoldd.py 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


Loading…
Cancel
Save