Skip to content
This repository
Browse code

Fixes for the latest Anki snapshot

  • Loading branch information...
commit 5b0053e0983ad8d261dbcee4b47619f80e0dba37 1 parent 34452c8
Max Bolingbroke authored November 22, 2009
8  Pinyin Toolkit.txt
@@ -14,6 +14,14 @@ http://github.com/batterseapower/pinyin-toolkit/issues
14 14
 
15 15
 h1. Changelog
16 16
 
  17
+h2. Version 0.6.3 (22/11/2009)
  18
+
  19
+| Max Bolingbroke | "Email":mailto:batterseapower@hotmail.com | "Website":http://blog.omega-prime.co.uk |
  20
+| Nick Cook       | "Email":mailto:nick@n-line.co.uk          | "Website":http://www.n-line.co.uk       |
  21
+
  22
+* The Toolkit should now work on the latest Anki snapshot (fixes the 'sgmllib' error)
  23
+
  24
+
17 25
 h2. Version 0.6.2 (20/11/2009)
18 26
 
19 27
 | Max Bolingbroke | "Email":mailto:batterseapower@hotmail.com | "Website":http://blog.omega-prime.co.uk |
7  pinyin/__init__.py
@@ -10,6 +10,13 @@
10 10
 if sys.version_info[0:2] < (2, 5):
11 11
     sys.path.append(utils.toolkitdir("pinyin", "vendor", "python25"))
12 12
 
  13
+# Anki excludes some standard Python modules from its new 2.6 distribution. Why God, why?
  14
+try:
  15
+    import ConfigParser
  16
+except ImportError:
  17
+    sys.path.append(utils.toolkitdir("pinyin", "vendor", "perverseness"))
  18
+
  19
+# Sanity prevails from this point:
13 20
 for vendor_package in ["cjklib"]:
14 21
     sys.path.append(utils.toolkitdir("pinyin", "vendor", vendor_package))
15 22
 
0  pinyin/vendor/perverseness/ConfigParser.py
No changes.
3  pinyin/vendor/perverseness/__init__.py
... ...
@@ -0,0 +1,3 @@
  1
+# This vendor directory is reserved for fake imports of real
  2
+# Python libraries that are excluded from the Anki distribution
  3
+# for no good reason that I can see.

0 notes on commit 5b0053e

Please sign in to comment.
Something went wrong with that request. Please try again.