prevent people from shooting themselves in the foot

This commit is contained in:
Damien Elmes 2011-04-28 09:31:48 +09:00
parent f969aec03f
commit 6a93e69fee

View file

@ -45,5 +45,9 @@ elif sys.version_info[1] < 5:
if sys.getfilesystemencoding().lower() in ("ascii", "ansi_x3.4-1968"):
raise Exception("Anki requires a UTF-8 locale.")
import os
if not os.path.exists(os.path.expanduser("~/.no-warranty")):
raise Exception("Don't use this without reading the forum thread")
version = "1.99"
from anki.storage import Deck