From 13830e02c51a332d5a9b21abac798e8f61fa3842 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 30 Aug 2019 08:44:05 +1000 Subject: [PATCH] Add the python 3.6 check to all entry points Signed-off-by: Peter Hutterer --- tuhi.in | 3 +++ tuhi/gui/application.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tuhi.in b/tuhi.in index 09e6810..f059919 100755 --- a/tuhi.in +++ b/tuhi.in @@ -22,6 +22,9 @@ tuhi_gui = Path('@libexecdir@', 'tuhi-gui') @devel@ # NOQA if __name__ == '__main__': + if sys.version_info < (3, 6): + sys.exit('Python 3.6 or later required') + args = sys.argv[1:] tuhi = subprocess.Popen([tuhi_server] + args) try: diff --git a/tuhi/gui/application.py b/tuhi/gui/application.py index 6aaebf1..b09b55a 100644 --- a/tuhi/gui/application.py +++ b/tuhi/gui/application.py @@ -147,6 +147,9 @@ def gtk_style(): def main(argv): + if sys.version_info < (3, 6): + sys.exit('Python 3.6 or later required') + import gettext import locale import signal