diff options
author | martin.von.loewis <devnull@localhost> | 2010-07-22 21:47:37 +0000 |
---|---|---|
committer | martin.von.loewis <devnull@localhost> | 2010-07-22 21:47:37 +0000 |
commit | 4b69840805e0ba6d9750747351759d36093b57f2 (patch) | |
tree | d5a0c55927135a7cc56cc49c11b6e5861473433d /config.py | |
parent | 29f25c9beffbb8a75da689fedeb21aa709ae16b0 (diff) | |
download | decorator-4b69840805e0ba6d9750747351759d36093b57f2.tar.gz |
Add support for running PyPI on sqlite3.
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |