diff --git a/component/glib/buildout.cfg b/component/glib/buildout.cfg
index f2d6f111efdf2f8f636a9af4f67c6a3546614128..934f209bd1c32febc90cc691cd61e71472a9ebca 100644
--- a/component/glib/buildout.cfg
+++ b/component/glib/buildout.cfg
@@ -14,7 +14,7 @@ recipe = slapos.recipe.cmmi
 url = http://ftp.gnome.org/pub/gnome/core/3.22/3.22.2/sources/glib-2.50.2.tar.xz
 md5sum = 5eeb2bfaf78a07be59585e8b6e80b1d6
 configure-options =
-  --with-python=${python2.7:location}/bin/python2.7
+  --with-python=${buildout:executable}
   --disable-libmount
   --disable-static
   --disable-selinux