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.
This commit is contained in:
Timo Paulssen 2009-02-21 12:30:09 +01:00
parent e9ecde6433
commit c17cec93aa

10
anki
View file

@ -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()