diff options
author | Paweł Jastrzębski <pawelj@vulturis.eu> | 2014-01-18 12:15:45 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@vulturis.eu> | 2014-01-18 12:15:45 +0100 |
commit | d99064596a6d3d20467647303582173a11d0fecf (patch) | |
tree | fa80f9cc9ff8e0133e770d0f99bef975462a1f1d /kcc-c2p.py | |
parent | Removing QFileDialog hack (diff) | |
download | kcc-d99064596a6d3d20467647303582173a11d0fecf.tar.gz kcc-d99064596a6d3d20467647303582173a11d0fecf.tar.bz2 kcc-d99064596a6d3d20467647303582173a11d0fecf.zip |
Detect Python 2 + README update
Diffstat (limited to 'kcc-c2p.py')
-rwxr-xr-x[-rw-r--r--] | kcc-c2p.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kcc-c2p.py b/kcc-c2p.py index 8b3feaa..cf194d1 100644..100755 --- a/kcc-c2p.py +++ b/kcc-c2p.py @@ -18,6 +18,11 @@ # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. +import sys +if sys.version_info[0] != 3: + print('ERROR: This is Python 3 script!') + exit(1) + __version__ = '4.0' __license__ = 'ISC' __copyright__ = '2012-2013, Ciro Mattia Gonano <ciromattia@gmail.com>, Pawel Jastrzebski <pawelj@vulturis.eu>' @@ -45,7 +50,6 @@ if len(missing) > 0: print('ERROR: ' + ', '.join(missing) + ' is not installed!') exit(1) -import sys from multiprocessing import freeze_support from kcc.comic2panel import main, Copyright |