From 4fe65d2f593f892452ddcf0f219b51a443e50527 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 25 Jan 2010 01:11:31 +0100 Subject: Read db path from settings.py. --- db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3