Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions patchman/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
import site
import sys

# use pysqlite3 if available
try:
import pysqlite3 # noqa
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
except ImportError:
pass

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Expand Down