Kaydet (Commit) 1ae415cb authored tarafından Hirokazu Yamamoto's avatar Hirokazu Yamamoto

Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when…

Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite libfile not found.
üst 081bb457
...@@ -934,7 +934,8 @@ class PyBuildExt(build_ext): ...@@ -934,7 +934,8 @@ class PyBuildExt(build_ext):
] ]
sqlite_libfile = self.compiler.find_library_file( sqlite_libfile = self.compiler.find_library_file(
sqlite_dirs_to_check + lib_dirs, 'sqlite3') sqlite_dirs_to_check + lib_dirs, 'sqlite3')
sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))] if sqlite_libfile:
sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
if sqlite_incdir and sqlite_libdir: if sqlite_incdir and sqlite_libdir:
sqlite_srcs = ['_sqlite/cache.c', sqlite_srcs = ['_sqlite/cache.c',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment