fix a bug about ImportError

This commit is contained in:
Sun Junyi 2013-07-15 09:32:52 +08:00
parent d63140fe5e
commit d691d91674

View File

@ -1,6 +1,9 @@
import jieba
import os
try:
from analyzer import ChineseAnalyzer
except ImportError:
pass
_curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ) )
f_name = os.path.join(_curpath,"idf.txt")