From: Hirokazu Yamamoto Date: Fri, 3 Oct 2008 17:34:49 +0000 (+0000) Subject: Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite... X-Git-Tag: v2.7a1~2782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ae415cbee7c35f00a167df84a6ca0759d66a4e5;p=thirdparty%2FPython%2Fcpython.git Issue #1706863: Fixed "'NoneType' object has no attribute 'rfind'" error when sqlite libfile not found. --- diff --git a/setup.py b/setup.py index 4b2318658c6c..a43b94ea35a9 100644 --- a/setup.py +++ b/setup.py @@ -934,7 +934,8 @@ class PyBuildExt(build_ext): ] sqlite_libfile = self.compiler.find_library_file( 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: sqlite_srcs = ['_sqlite/cache.c',