From 03c3072573763d1cfb421463f69fb6f55b085c26 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 23 Jul 2001 04:33:30 +0000 Subject: [PATCH] brought the CGI instance config dict in line with roundup-server git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@41 57a73879-2fb5-44c3-a270-3262357dd7e2 --- cgi-bin/roundup.cgi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi index 511e08b..532e971 100755 --- a/cgi-bin/roundup.cgi +++ b/cgi-bin/roundup.cgi @@ -1,6 +1,6 @@ #!/usr/bin/env python -# $Id: roundup.cgi,v 1.2 2001-07-23 04:31:40 richard Exp $ +# $Id: roundup.cgi,v 1.3 2001-07-23 04:33:30 richard Exp $ # python version check import sys @@ -14,7 +14,7 @@ if int(sys.version[0]) < 2: # This indicates where the Roundup instance lives ROUNDUPS = { - 'roundup_test': '/tmp/', + 'test': '/tmp/roundup_test', } # Where to log debugging information to. Use an instance of DevNull if you @@ -92,7 +92,8 @@ try: os.environ['PATH_INFO'] = string.join(path[2:], '/') if ROUNDUPS.has_key(instance): instance_home = ROUNDUPS[instance] - sys.path.insert(0, instance_home) + module_path, instance = os.path.split(instance_home) + sys.path.insert(0, module_path) try: instance = __import__(instance) finally: @@ -109,6 +110,9 @@ sys.stdout, sys.stderr = out, err # # $Log: not supported by cvs2svn $ +# Revision 1.2 2001/07/23 04:31:40 richard +# Fixed the roundup CGI script for updates to cgi_client.py +# # Revision 1.1 2001/07/22 11:47:07 richard # More Grande Splite # -- 2.30.2