Skip to content

Commit d7c239c

Browse files
committed
use pysqlite3 if available
1 parent 7986b55 commit d7c239c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

patchman/settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
import site
55
import sys
66

7+
# use pysqlite3 if available
8+
try:
9+
import pysqlite3 # noqa
10+
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
11+
except ImportError:
12+
pass
13+
714
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
815
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
916

0 commit comments

Comments
 (0)