diff roundup/instance.py @ 4366:a0be2bc223f5

use config.DATABASE in cases where 'db' was still hard-coded - in instance when determining the backend - during init after nuking the db it would create 'db'
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Mon, 08 Mar 2010 15:12:42 +0000
parents 2b75274936bc
children 72db88cb68b0
line wrap: on
line diff
--- a/roundup/instance.py	Fri Mar 05 15:51:11 2010 +0000
+++ b/roundup/instance.py	Mon Mar 08 15:12:42 2010 +0000
@@ -81,7 +81,7 @@
 
     def get_backend_name(self):
         o = __builtins__['open']
-        f = o(os.path.join(self.tracker_home, 'db', 'backend_name'))
+        f = o(os.path.join(self.config.DATABASE, 'backend_name'))
         name = f.readline().strip()
         f.close()
         return name

Roundup Issue Tracker: http://roundup-tracker.org/