old python needs __main__ to call a module
[pylucene.git] / samples / LuceneInAction / SynonymAnalyzerTest.py
1
2 import os, sys, unittest, lucene
3 lucene.initVM()
4
5 sys.path.append(os.path.dirname(os.path.abspath(sys.argv[0])))
6
7 from lia.analysis.synonym.SynonymAnalyzerTest import SynonymAnalyzerTest
8 SynonymAnalyzerTest.main()
9
10 import lia.analysis.synonym.SynonymAnalyzerTest
11 unittest.main(lia.analysis.synonym.SynonymAnalyzerTest)