From a31f641c7c68ae849166fe40cca7dc0d6dd22251 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Fri, 15 Nov 2013 16:07:38 +0400 Subject: [PATCH] ajout de i_need_py27 --- pyulib/src/i_need_py27.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pyulib/src/i_need_py27.py diff --git a/pyulib/src/i_need_py27.py b/pyulib/src/i_need_py27.py new file mode 100644 index 0000000..a031ed0 --- /dev/null +++ b/pyulib/src/i_need_py27.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 mode: python -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 + +"""L'importation de ce module permet de s'assurer que la version de python est +2.7 ou supérieure (mais pas 3.x) +""" + +from ulib.base.pversion import ensure_version +from ulib.base.control import die +try: ensure_version("2.7") +except: die()