Python config detection enhancement required by the Samba project
authorThomas Nagy <tnagy2pow10@gmail.com>
Fri, 5 Dec 2014 07:32:30 +0000 (08:32 +0100)
committerThomas Nagy <tnagy2pow10@gmail.com>
Fri, 5 Dec 2014 07:32:30 +0000 (08:32 +0100)
wafadmin/Tools/python.py

index 6030d6c..a8a4aa0 100644 (file)
@@ -264,7 +264,7 @@ LDVERSION = %r
 
        includes = []
        if python_config:
-               for incstr in Utils.cmd_output("%s %s --includes" % (python, python_config)).strip().split():
+               for incstr in Utils.cmd_output("%s --includes" % (python_config,)).strip().split():
                        # strip the -I or /I
                        if (incstr.startswith('-I')
                            or incstr.startswith('/I')):