From f62005a7610b38ebbea54cf01e16499d95f9fa65 Mon Sep 17 00:00:00 2001 From: Andrzej Kotulski Date: Wed, 10 Jun 2015 13:44:25 -0100 Subject: [PATCH] Add simple check for python version --- infer/bin/infer | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infer/bin/infer b/infer/bin/infer index bfcea7464..e8a1bf570 100755 --- a/infer/bin/infer +++ b/infer/bin/infer @@ -90,6 +90,10 @@ def create_argparser(parents=[]): def main(): + if sys.version_info < (2, 7, 0): + print("You need python 2.7 or later to run this script") + exit(1) + to_parse, cmd = split_args_to_parse() # get the module name (if any), then load it capture_module_name = os.path.basename(cmd[0]) if len(cmd) > 0 else None