Root/makfa/patches/01-path.patch

1diff --git a/makfa b/makfa
2index 488007e..a19a5c8 100755
3--- a/makfa
4+++ b/makfa
5@@ -485,7 +485,7 @@ class Type(Command):
6 
7 class Updater(object):
8 
9- def __init__(self, lang='en', filename=os.path.expanduser('~/makfa.dump')):
10+ def __init__(self, lang='en', filename='/usr/share/makfa/makfa.dump'):
11         self.db = {'order': [], 'entries': {}}
12         url = 'http://jbovlaste.lojban.org/export/xml-export.html?lang=%s'
13         tree = etree.parse(urllib.urlopen(url % lang))
14@@ -615,7 +615,7 @@ class Filter(object):
15 
16 class Dictionary(object):
17 
18- def __init__(self, filename=os.path.expanduser('~/makfa.dump')):
19+ def __init__(self, filename='/usr/share/makfa/makfa.dump'):
20         try:
21             self._db = pickle.load(open(filename))
22         except:
23

Archive Download this file



interactive