class Generator(object):
def __init__(self, opts):
# 加入下面两行代码,注意缩进格式
libchangPath = os.path.abspath(os.path.join(os.path.dirname(__file__), 'libclang'))
cindex.Config.set_library_path(libchangPath)
self.index = cindex.Index.create()
1、http://www.cocoachina.com/bbs/read.php?tid-281021.html
def __init__(self, opts):
# 加入下面两行代码,注意缩进格式
libchangPath = os.path.abspath(os.path.join(os.path.dirname(__file__), 'libclang'))
cindex.Config.set_library_path(libchangPath)
self.index = cindex.Index.create()
1、http://www.cocoachina.com/bbs/read.php?tid-281021.html
2、配置python 路径时,一定不能出现空格
如果还有错误,欢迎留言,可以一起解决。
qq群:195391500 欢迎加入