scons: tweak logic for whether a path is a 'system' path, avoiding case where a custom path like /opt/mapnik/lib would be assumed to be a standard system path

This commit is contained in:
Dane Springmeyer 2010-07-28 23:13:24 +00:00
parent 08eec40986
commit 9a1983c670

View file

@ -125,7 +125,7 @@ def sort_paths(items,priority):
else: else:
path_types['user'].append(i) path_types['user'].append(i)
# key system libs (likely others will fall into 'other') # key system libs (likely others will fall into 'other')
elif '/usr/' in i or '/System' in i or '/lib' in i: elif '/usr/' in i or '/System' in i or i.startswith('/lib'):
path_types['system'].append(i) path_types['system'].append(i)
# anything not yet matched... # anything not yet matched...
# likely a combo of rare system lib paths and # likely a combo of rare system lib paths and