diff roundup-admin @ 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-admin	Fri Aug 03 01:19:43 2001 +0000
+++ b/roundup-admin	Fri Aug 03 01:28:33 2001 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/python
-# $Id: roundup-admin,v 1.11 2001-08-03 00:59:34 richard Exp $
+# $Id: roundup-admin,v 1.12 2001-08-03 01:28:33 richard Exp $
 
 import sys
 if int(sys.version[0]) < 2:
@@ -381,7 +381,7 @@
             password = getpass.getpass('  password: ')
 
     # get the instance
-    instance = imp.load_module('instance', None, instance_home, ('', '', 5))
+    instance = imp.load_package('instance', instance_home)
 
     function = figureCommands().get(command, None)
 
@@ -404,6 +404,11 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.11  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.10  2001/07/30 08:12:17  richard
 # Added time logging and file uploading to the templates.
 #

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