fix python version check

This commit is contained in:
Damien Elmes 2017-07-05 12:28:03 +10:00
parent c392418ba7
commit 36ed23e103

View File

@ -4,10 +4,8 @@
import sys import sys
if sys.version_info[0] < 3: if sys.version_info[0] < 3 or sys.version_info[1] < 5:
raise Exception("Anki should be run with Python 3") raise Exception("Anki requires Python 3.5+")
elif sys.version_info[1] < 4:
raise Exception("Anki requires Python 3.4+")
version="2.1.0beta1" # build scripts grep this line, so preserve formatting version="2.1.0beta1" # build scripts grep this line, so preserve formatting
from anki.storage import Collection from anki.storage import Collection