From c13e2eab8d92fa40b586716ab3e45164c14b1f05 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 15 Apr 2010 21:44:59 +0000 Subject: [PATCH] prioritize /usr/local above other potential paths like /opt/local - TODO: make configurable --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 5a947291a..2a3a2f480 100644 --- a/SConstruct +++ b/SConstruct @@ -101,7 +101,10 @@ def sort_paths(items,priority): path_types['frameworks'].append(i) # various 'local' installs like /usr/local or /opt/local elif 'local' in i or '/sw' in i: - path_types['user'].append(i) + if '/usr/local' in i: + path_types['user'].insert(0,i) + else: + path_types['user'].append(i) # key system libs (likely others will fall into 'other') elif '/usr/' in i or '/System' in i or '/lib' in i: path_types['system'].append(i)