wafsamba: python-config is not always a script.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 16 Dec 2012 14:01:53 +0000 (15:01 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 26 Dec 2012 19:48:36 +0000 (20:48 +0100)
buildtools/wafadmin/Tools/python.py

index c2af3123f7270c8dceed9846c4241935cffe1c5e..a15e1f620f1de952ff3eb0486129ad9cf7666df8 100644 (file)
@@ -259,7 +259,7 @@ MACOSX_DEPLOYMENT_TARGET = %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')):