Add missing imports.
--- a/obsolete/exp_anki.py Thu Nov 10 19:08:57 2016 +0200
+++ b/obsolete/exp_anki.py Fri Nov 11 00:19:47 2016 +0200
@@ -1,3 +1,6 @@
+import sys
+import tempfile
+
FONAME = "test.apkg"
# Looks like anki libs change working directory to media directory of current deck
@@ -6,6 +9,7 @@
FBASENAME, _ = os.path.splitext(os.path.basename(FONAME))
TMPDIR = tempfile.mkdtemp(dir = os.path.dirname(FONAME))
+sys.path.append('/usr/share/anki')
import anki
from anki.exporting import AnkiPackageExporter