mesa: Use the python executable from sys.executable.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Mar 2009 19:13:21 +0000 (19:13 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Mar 2009 19:13:21 +0000 (19:13 +0000)
From Ramesh Dharan <rrdharan@vmware.com>

src/gallium/auxiliary/indices/SConscript

index e5f7ee9484571ea91917ad6cbfdee60d5c1ce130..712e215534fa92b118b16f5aee14e988d30a48d4 100644 (file)
@@ -1,17 +1,19 @@
 Import('*')
 
+from sys import executable as python_cmd
+
 env.CodeGenerate(
        target = 'u_indices_gen.c', 
        script = 'u_indices_gen.py', 
        source = [],
-       command = 'python $SCRIPT > $TARGET'
+       command = python_cmd + ' $SCRIPT > $TARGET'
 )
 
 env.CodeGenerate(
        target = 'u_unfilled_gen.c', 
        script = 'u_unfilled_gen.py', 
        source = [],
-       command = 'python $SCRIPT > $TARGET'
+       command = python_cmd + ' $SCRIPT > $TARGET'
 )
 
 indices = env.ConvenienceLibrary(