OSDN Git Service

Replace fixed PATH to the value from the environment.
authorrelan <relan@users.noreply.github.com>
Wed, 19 Dec 2012 06:30:24 +0000 (06:30 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:15 +0000 (08:26 +0300)
This makes scons find build tools in non-standard directories specified
in the PATH variable.

SConstruct

index 8fef6dd..997e8e4 100644 (file)
@@ -23,6 +23,7 @@ import platform
 import SCons
 
 env = Environment(**ARGUMENTS)
+env['ENV']['PATH'] = os.environ['PATH']
 
 destdir = env.get('DESTDIR', '/sbin');
 targets = []