Use python2 shebang

Some distributions have switched to python3 as default and our code
breaks because it's python2 specific. Follow the PEP 394
recommendation.
This commit is contained in:
Daniel Narvaez 2013-09-28 11:33:40 +02:00 committed by Manuel Quiñones
parent 0408c19365
commit 6fdf5f208a
4 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
# Copyright (C) 2006-2008, Red Hat, Inc. # Copyright (C) 2006-2008, Red Hat, Inc.
# #

View File

@ -15,6 +15,7 @@ GNOME_COMPILE_WARNINGS(maximum)
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal]) AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
PYTHON=python2
AM_PATH_PYTHON AM_PATH_PYTHON
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
from sugar3.activity import bundlebuilder from sugar3.activity import bundlebuilder

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
# Copyright (C) 2006, Red Hat, Inc. # Copyright (C) 2006, Red Hat, Inc.
# Copyright (C) 2007, One Laptop Per Child # Copyright (C) 2007, One Laptop Per Child