Mercurial > p > roundup > code
diff roundup/init.py @ 193:241a0323aacb
Used the much nicer load_package, pointed out by Steve Majewski.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 03 Aug 2001 01:28:33 +0000 |
| parents | 996eaf90c01e |
| children | 609a9d82218f |
line wrap: on
line diff
--- a/roundup/init.py Fri Aug 03 01:19:43 2001 +0000 +++ b/roundup/init.py Fri Aug 03 01:28:33 2001 +0000 @@ -1,4 +1,4 @@ -# $Id: init.py,v 1.9 2001-08-03 00:59:34 richard Exp $ +# $Id: init.py,v 1.10 2001-08-03 01:28:33 richard Exp $ import os, shutil, sys, errno, imp @@ -50,11 +50,16 @@ open(os.path.join(instance_home, 'select_db.py'), 'w').write(db) # now import the instance and call its init - instance = imp.load_module('instance', None, instance_home, ('', '', 5)) + instance = imp.loa_package('instance', instance_home) instance.init(adminpw) # # $Log: not supported by cvs2svn $ +# Revision 1.9 2001/08/03 00:59:34 richard +# Instance import now imports the instance using imp.load_module so that +# we can have instance homes of "roundup" or other existing python package +# names. +# # Revision 1.8 2001/07/29 07:01:39 richard # Added vim command to all source so that we don't get no steenkin' tabs :) #
