summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'db.py')
-rw-r--r--db.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/db.py b/db.py
index 06b2a14..8d96b4d 100644
--- a/db.py
+++ b/db.py
@@ -1,8 +1,9 @@
from sqlalchemy import create_engine, Column, Integer, String, DateTime, Text, Index
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relation, backref
+import settings
-engine = create_engine('sqlite:////home/snakebite/pastepy/db')
+engine = create_engine(settings.db_path)
Base = declarative_base(engine = engine)