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 16 lines (14 sloc) 0.402 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/env python

import os, sys
# system-wide install
sys.path.insert(0, "/usr/share/anki")
sys.path.insert(0, "/usr/share/anki/libanki")
# running from extracted folder
base = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, base)
sys.path.insert(0, os.path.join(base, "libanki"))
# or git
sys.path.insert(0, os.path.join(base, "..", "libanki"))
# start
import anki, aqt
aqt.run()
Something went wrong with that request. Please try again.