mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
e9ecde6433
commit
c17cec93aa
1 changed files with 10 additions and 0 deletions
10
anki
10
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()
|
||||
|
|
Loading…
Reference in a new issue