Remove unnecessary lib_found variable from outer scope in _ctc_find_lib

上级 334c8baf
...@@ -17,7 +17,6 @@ def _ctc_find_lib(): ...@@ -17,7 +17,6 @@ def _ctc_find_lib():
Find the directory that contains libwarpctc.so Find the directory that contains libwarpctc.so
""" """
if config.ctc.root != '': if config.ctc.root != '':
lib_found = False
for lib_dir in ["build", "lib", "lib64"]: for lib_dir in ["build", "lib", "lib64"]:
lib_path = os.path.join(config.ctc.root, lib_dir) lib_path = os.path.join(config.ctc.root, lib_dir)
if os.path.isdir(lib_path) and os.path.exists(lib_path): if os.path.isdir(lib_path) and os.path.exists(lib_path):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论