mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix python version check
This commit is contained in:
parent
c392418ba7
commit
36ed23e103
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue