From c17cec93aa4eb7d5bb93a9c9a9500b3ee8123426 Mon Sep 17 00:00:00 2001 From: Timo Paulssen Date: Sat, 21 Feb 2009 12:30:09 +0100 Subject: [PATCH] Added a notification if the forms module is not generated yet. This script should IMO not attempt to build the interface by itself, as anki may be installed system-wide and the permissions wouldn't be enough. --- anki | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/anki b/anki index b8fe5f2c3..e87c94bc9 100755 --- a/anki +++ b/anki @@ -16,6 +16,16 @@ if __name__ == "__main__": sys.path.insert(0, os.path.join(os.path.join(modDir, ".."), "libanki")) import ankiqt + + try: + import ankiqt.forms + except ImportError: + print + print "You need to run tools/build_ui.sh in order for anki to work." + print + raise + + #import profile #profile.run("ankiqt.run()", sort="cumulative") ankiqt.run()