summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authormartin.von.loewis <devnull@localhost>2010-07-22 21:47:37 +0000
committermartin.von.loewis <devnull@localhost>2010-07-22 21:47:37 +0000
commit4b69840805e0ba6d9750747351759d36093b57f2 (patch)
treed5a0c55927135a7cc56cc49c11b6e5861473433d /config.py
parent29f25c9beffbb8a75da689fedeb21aa709ae16b0 (diff)
downloaddecorator-4b69840805e0ba6d9750747351759d36093b57f2.tar.gz
Add support for running PyPI on sqlite3.
Diffstat (limited to 'config.py')
-rw-r--r--config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.py b/config.py
index eba6d79..d83fe0e 100644
--- a/config.py
+++ b/config.py
@@ -8,6 +8,10 @@ class Config:
c.read(configfile)
self.database_name = c.get('database', 'name')
self.database_user = c.get('database', 'user')
+ if c.has_option('database', 'driver'):
+ self.database_driver = c.get('database', 'driver')
+ else:
+ self.database_driver = 'psycopg2'
if c.has_option('database', 'password'):
self.database_pw = c.get('database', 'password')
else: