Mercurial > p > roundup > code
diff roundup-mailgw @ 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 | c1461733cbf9 |
line wrap: on
line diff
--- a/roundup-mailgw Fri Aug 03 01:19:43 2001 +0000 +++ b/roundup-mailgw Fri Aug 03 01:28:33 2001 +0000 @@ -1,5 +1,5 @@ #! /usr/bin/python -# $Id: roundup-mailgw,v 1.3 2001-08-03 00:59:34 richard Exp $ +# $Id: roundup-mailgw,v 1.4 2001-08-03 01:28:33 richard Exp $ import sys if int(sys.version[0]) < 2: @@ -18,7 +18,7 @@ # get the instance import imp -instance = imp.load_module('instance', None, instance_home, ('', '', 5)) +instance = imp.load_package('instance', instance_home) # invokde the mail handler db = instance.open('admin') @@ -27,6 +27,11 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.3 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.2 2001/07/29 07:01:39 richard # Added vim command to all source so that we don't get no steenkin' tabs :) #
