python version check (#99)

* detect minimum python3.2

* change for when python4.0 is (eventually) released
This commit is contained in:
Gareth Dunstone 2018-02-02 15:30:11 +11:00 committed by GitHub
parent c529bd4f1c
commit 68ef3b9926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,10 @@
#!/usr/bin/env python3
import sys
if sys.version_info[0] < 3:
raise Exception("This program requires at least python3.2")
if sys.version_info[0] == 3 and sys.version_info[1] < 2:
raise Exception("This program requires at least python3.2")
from lib.utils import FullHelpArgumentParser
from scripts.extract import ExtractTrainingData