Commit 5467bc46 authored by Jim Fulton's avatar Jim Fulton

Added logic to copy default ZODB 3 database.

parent d118318a
......@@ -104,15 +104,16 @@ print '-'*78
os.chdir(home)
data_dir=os.path.join(home, 'var')
db_path=os.path.join(data_dir, 'Data.bbb')
dd_path=os.path.join(data_dir, 'Data.bbb.in')
if not os.path.exists(data_dir):
print 'creating data directory'
os.mkdir('var')
if not os.path.exists(db_path):
print 'creating default database'
os.system('cp %s %s' % (dd_path, db_path))
for suffix in 'bbb', 'fs':
db_path=os.path.join(data_dir, 'Data.%s' % suffix)
dd_path=os.path.join(data_dir, 'Data.%s.in' % suffix)
if not os.path.exists(db_path) and os.path.exists(dd_path):
print 'creating default database'
os.system('cp %s %s' % (dd_path, db_path))
ac_path=os.path.join(home, 'access')
if not os.path.exists(ac_path):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment