diff --git a/roundup/init.py b/roundup/init.py
index 7ecba91ef516ad7d261a828aa6e6dfd9f8dd374b..d4afecc9e8a50da5e33c7fc7d0dee6a3ff4e6918 100644 (file)
--- a/roundup/init.py
+++ b/roundup/init.py
finally:
f.close()
finally:
f.close()
-def write_select_db(instance_home, backend):
+def write_select_db(instance_home, backend, dbdir = 'db'):
''' Write the file that selects the backend for the tracker
'''
''' Write the file that selects the backend for the tracker
'''
- dbdir = os.path.join(instance_home, 'db')
+ # dbdir may be a relative pathname, os.path.join does the right
+ # thing when the second component of a join is an absolute path
+ dbdir = os.path.join (instance_home, dbdir)
if not os.path.exists(dbdir):
os.makedirs(dbdir)
f = open(os.path.join(dbdir, 'backend_name'), 'w')
if not os.path.exists(dbdir):
os.makedirs(dbdir)
f = open(os.path.join(dbdir, 'backend_name'), 'w')