summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-10-08 04:09:33 (GMT)
committerSteven Knight <knight@baldmt.com>2005-10-08 04:09:33 (GMT)
commit2d0d82237c691d0783329ae70ba7b49bbd3649a6 (patch)
tree1936a35a76ca78d644fb1dcc51eaf421da2f1081 /src/engine
parentaf9c2236034aec3e408ae4dd6f2eb8bbc7e24f2f (diff)
downloadSCons-2d0d82237c691d0783329ae70ba7b49bbd3649a6.zip
SCons-2d0d82237c691d0783329ae70ba7b49bbd3649a6.tar.gz
SCons-2d0d82237c691d0783329ae70ba7b49bbd3649a6.tar.bz2
Add /sw/bin to the default PATH on Darwin systems. (Greg Noel) Add /opt/bin to the default PATH on all POSIX systems. (Asfand Yar Qazi)
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Platform/darwin.py1
-rw-r--r--src/engine/SCons/Platform/posix.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Platform/darwin.py b/src/engine/SCons/Platform/darwin.py
index 3f9b796..7883795 100644
--- a/src/engine/SCons/Platform/darwin.py
+++ b/src/engine/SCons/Platform/darwin.py
@@ -38,3 +38,4 @@ import os
def generate(env):
posix.generate(env)
env['SHLIBSUFFIX'] = '.dylib'
+ env['ENV']['PATH'] = env['ENV']['PATH'] + ':/sw/bin'
diff --git a/src/engine/SCons/Platform/posix.py b/src/engine/SCons/Platform/posix.py
index 5f1cfa1..4822c35 100644
--- a/src/engine/SCons/Platform/posix.py
+++ b/src/engine/SCons/Platform/posix.py
@@ -224,7 +224,7 @@ def generate(env):
if not env.has_key('ENV'):
env['ENV'] = {}
- env['ENV']['PATH'] = '/usr/local/bin:/bin:/usr/bin'
+ env['ENV']['PATH'] = '/usr/local/bin:/bin:/usr/bin:/opt/bin'
env['OBJPREFIX'] = ''
env['OBJSUFFIX'] = '.o'
env['SHOBJPREFIX'] = '$OBJPREFIX'