mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
move forms check out of script root so we can report python3 error
This commit is contained in:
parent
e63370a602
commit
c08b561f2f
2 changed files with 9 additions and 8 deletions
9
anki
9
anki
|
@ -11,12 +11,5 @@ if __name__ == "__main__":
|
|||
modDir=runningDir
|
||||
sys.path.insert(0, os.path.join(modDir, "libanki"))
|
||||
sys.path.insert(0, os.path.join(os.path.join(modDir, ".."), "libanki"))
|
||||
import aqt
|
||||
try:
|
||||
import aqt.forms
|
||||
except ImportError, e:
|
||||
if "aqt.forms" in str(e):
|
||||
print "If you're running from git, did you run build_ui.sh?"
|
||||
print
|
||||
raise
|
||||
import anki, aqt
|
||||
aqt.run()
|
||||
|
|
|
@ -16,6 +16,14 @@ mw = None # set on init
|
|||
|
||||
moduleDir = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]
|
||||
|
||||
try:
|
||||
import aqt.forms
|
||||
except ImportError, e:
|
||||
if "aqt.forms" in str(e):
|
||||
print "If you're running from git, did you run build_ui.sh?"
|
||||
print
|
||||
raise
|
||||
|
||||
# Dialog manager - manages modeless windows
|
||||
##########################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue