Fix the check for pyoverridesdir for python3
authorKen VanDine <ken.vandine@canonical.com>
Wed, 23 Jan 2013 06:25:21 +0000 (07:25 +0100)
committerAlberto Mardegan <alberto.mardegan@canonical.com>
Wed, 23 Jan 2013 06:25:21 +0000 (07:25 +0100)
configure.ac

index 33d28cf..c645663 100644 (file)
@@ -92,7 +92,7 @@ AS_IF([test "x$enable_python" != "xno"],
 
 AS_IF([test "x$have_python" = "xyes"],
     [AM_PATH_PYTHON
-     AC_SUBST([pyoverridesdir], [`$PYTHON -c "import gi;print gi._overridesdir"`])])
+     AC_SUBST([pyoverridesdir], [`$PYTHON -c "import gi;print (gi._overridesdir)" 2>/dev/null`])])
 
 AM_CONDITIONAL([ENABLE_PYTHON], [test "x$have_python" = "xyes"])