From 26df33633315fd3bd1f413ffddfd5ef68ac07c50 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Fri, 8 Apr 2016 11:16:33 +0530 Subject: fix print statement syntax for python3 https://bugzilla.gnome.org/show_bug.cgi?id=764764 --- bin/antler-keyboard.in | 2 +- bin/caribou-preferences.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/antler-keyboard.in b/bin/antler-keyboard.in index a1f41a6..03405a4 100755 --- a/bin/antler-keyboard.in +++ b/bin/antler-keyboard.in @@ -26,7 +26,7 @@ datarootdir=@datarootdir@ if [ $script_dir = "@libexecdir@" ] then - datadir="$(@PYTHON@ -c "from gi.repository import GLib; print ':'.join(GLib.get_system_data_dirs())")" + datadir="$(@PYTHON@ -c "from gi.repository import GLib; print(':'.join(GLib.get_system_data_dirs()))")" export PYTHONPATH="${prefix}/lib/python@PYTHON_VERSION@/site-packages:${prefix}/lib64/python@PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}" export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" export LD_LIBRARY_PATH="@libdir@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" diff --git a/bin/caribou-preferences.in b/bin/caribou-preferences.in index eaacf05..3409bb9 100755 --- a/bin/caribou-preferences.in +++ b/bin/caribou-preferences.in @@ -26,7 +26,7 @@ datarootdir=@datarootdir@ if [ $script_dir = "@bindir@" ] then - datadir="$(@PYTHON@ -c "from gi.repository import GLib; print ':'.join(GLib.get_system_data_dirs())")" + datadir="$(@PYTHON@ -c "from gi.repository import GLib; print(':'.join(GLib.get_system_data_dirs()))")" export PYTHONPATH="@prefix@/lib/python@PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}" export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" export LD_LIBRARY_PATH="@libdir@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" -- cgit v1.2.1