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 6030d6c3f3723450d62176ad399783d578801239..a8a4aa0fe5d9a8332dc3e83a63b01d63e3390896 100644 (file)
@@ -264,7 +264,7 @@ LDVERSION = %r
 
        includes = []
        if python_config:
 
        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')):
                        # strip the -I or /I
                        if (incstr.startswith('-I')
                            or incstr.startswith('/I')):