comparison roundup/init.py @ 201:609a9d82218f

Fixed [SF#447671] - typo
author Richard Jones <richard@users.sourceforge.net>
date Sat, 04 Aug 2001 22:42:43 +0000
parents 241a0323aacb
children c1461733cbf9
comparison
equal deleted inserted replaced
200:89c47b5dadac 201:609a9d82218f
1 # $Id: init.py,v 1.10 2001-08-03 01:28:33 richard Exp $ 1 # $Id: init.py,v 1.11 2001-08-04 22:42:43 richard Exp $
2 2
3 import os, shutil, sys, errno, imp 3 import os, shutil, sys, errno, imp
4 4
5 def copytree(src, dst, symlinks=0): 5 def copytree(src, dst, symlinks=0):
6 """Recursively copy a directory tree using copy2(). 6 """Recursively copy a directory tree using copy2().
48 db = '''# WARNING: DO NOT EDIT THIS FILE!!! 48 db = '''# WARNING: DO NOT EDIT THIS FILE!!!
49 from roundup.backends.back_%s import Database'''%backend 49 from roundup.backends.back_%s import Database'''%backend
50 open(os.path.join(instance_home, 'select_db.py'), 'w').write(db) 50 open(os.path.join(instance_home, 'select_db.py'), 'w').write(db)
51 51
52 # now import the instance and call its init 52 # now import the instance and call its init
53 instance = imp.loa_package('instance', instance_home) 53 instance = imp.load_package('instance', instance_home)
54 instance.init(adminpw) 54 instance.init(adminpw)
55 55
56 # 56 #
57 # $Log: not supported by cvs2svn $ 57 # $Log: not supported by cvs2svn $
58 # Revision 1.10 2001/08/03 01:28:33 richard
59 # Used the much nicer load_package, pointed out by Steve Majewski.
60 #
58 # Revision 1.9 2001/08/03 00:59:34 richard 61 # Revision 1.9 2001/08/03 00:59:34 richard
59 # Instance import now imports the instance using imp.load_module so that 62 # Instance import now imports the instance using imp.load_module so that
60 # we can have instance homes of "roundup" or other existing python package 63 # we can have instance homes of "roundup" or other existing python package
61 # names. 64 # names.
62 # 65 #

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