2 import os, sys, tarfile, lucene
5 baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
6 sys.path.append(baseDir)
8 from lia.common.TestDataDocumentHandler import TestDataDocumentHandler
10 TestDataDocumentHandler.createIndex(os.path.join(baseDir, 'data'),
11 os.path.join(baseDir, 'index'),
14 tar = tarfile.open(os.path.join(baseDir, 'indexes.tar.gz'), "r:gz")
20 tar.extract(member, baseDir)