From d99064596a6d3d20467647303582173a11d0fecf Mon Sep 17 00:00:00 2001 From: Paweł Jastrzębski Date: Sat, 18 Jan 2014 12:15:45 +0100 Subject: Detect Python 2 + README update --- kcc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 kcc.py (limited to 'kcc.py') diff --git a/kcc.py b/kcc.py old mode 100644 new mode 100755 index 727d075..71c5877 --- a/kcc.py +++ b/kcc.py @@ -23,6 +23,11 @@ __license__ = 'ISC' __copyright__ = '2012-2013, Ciro Mattia Gonano , Pawel Jastrzebski ' __docformat__ = 'restructuredtext en' +import sys +if sys.version_info[0] != 3: + print('ERROR: This is Python 3 script!') + exit(1) + # Dependiences check missing = [] try: @@ -60,7 +65,6 @@ if len(missing) > 0: print('ERROR: ' + ', '.join(missing) + ' is not installed!') exit(1) -import sys import os from multiprocessing import freeze_support from kcc import KCC_gui -- cgit 1.4.1