Index: trunk/extensions/Offline/indexer.py |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | self.base_dir = os.path.dirname(xmlbz2_path) |
15 | 15 | self.xmlbz2_path = xmlbz2_path |
16 | 16 | self.splits_dir = self.base_dir |
| 17 | + self.db_dir = os.path.join(self.base_dir, "db") |
17 | 18 | #self.splits_dir = os.path.join(self.base_dir, "wiki-splits") |
18 | 19 | |
19 | 20 | def Semaphored(f): |
— | — | @@ -44,7 +45,7 @@ |
45 | 46 | |
46 | 47 | @Semaphored |
47 | 48 | def index(self): |
48 | | - db = Db(self.splits_dir) |
| 49 | + db = Db(self.db_dir) |
49 | 50 | article_title_re = re.compile(' *<title>([^<]+)</title>') |
50 | 51 | for dirpath, subdirs, files in os.walk(self.splits_dir): |
51 | 52 | for f in files: |