1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2025-04-21 12:27:27 +03:00

Create package for makfa, the Lojban dictionary.

{.i lo vi se finti ku vasru la makfa poi jbovlaste}
This commit is contained in:
Alan Post
2010-09-10 10:04:22 -06:00
parent 502d2f0497
commit f4fa2d50aa
3 changed files with 139 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
diff --git a/makfa b/makfa
index 488007e..a19a5c8 100755
--- a/makfa
+++ b/makfa
@@ -485,7 +485,7 @@ class Type(Command):
class Updater(object):
- def __init__(self, lang='en', filename=os.path.expanduser('~/makfa.dump')):
+ def __init__(self, lang='en', filename='/var/lib/makfa/makfa.dump'):
self.db = {'order': [], 'entries': {}}
url = 'http://jbovlaste.lojban.org/export/xml-export.html?lang=%s'
tree = etree.parse(urllib.urlopen(url % lang))
@@ -615,7 +615,7 @@ class Filter(object):
class Dictionary(object):
- def __init__(self, filename=os.path.expanduser('~/makfa.dump')):
+ def __init__(self, filename='/var/lib/makfa/makfa.dump'):
try:
self._db = pickle.load(open(filename))
except: