PyLucene 3.4.0-1 import
[pylucene.git] / samples / LuceneInAction / SortingExample.py
1
2 import os, sys, lucene
3 lucene.initVM()
4
5 baseDir = os.path.dirname(os.path.abspath(sys.argv[0]))
6 sys.path.append(baseDir)
7
8 from lia.advsearching.SortingExample import SortingExample
9 from lucene import System
10
11 System.setProperty("index.dir", os.path.join(baseDir, 'index'))
12 SortingExample.main(sys.argv)