Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 23 lines (21 sloc) 0.641 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/usr/bin/env python

import os, sys
if __name__ == "__main__":
    try:
        modDir=os.path.dirname(os.path.realpath(__file__))
        runningDir=os.path.split(modDir)[0]
    except NameError:
        # py2exe
        runningDir=os.path.dirname(sys.argv[0])
        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):
            raise Exception("Please read README.development.")
        else:
            raise
    aqt.run()
Something went wrong with that request. Please try again.