Skip to content

Commit b4f11c8

Browse files
author
Richard Jones
committed
brought the CGI instance config dict in line with roundup-server
1 parent 088a208 commit b4f11c8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cgi-bin/roundup.cgi

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
# $Id: roundup.cgi,v 1.2 2001-07-23 04:31:40 richard Exp $
3+
# $Id: roundup.cgi,v 1.3 2001-07-23 04:33:30 richard Exp $
44

55
# python version check
66
import sys
@@ -14,7 +14,7 @@ if int(sys.version[0]) < 2:
1414

1515
# This indicates where the Roundup instance lives
1616
ROUNDUPS = {
17-
'roundup_test': '/tmp/',
17+
'test': '/tmp/roundup_test',
1818
}
1919

2020
# Where to log debugging information to. Use an instance of DevNull if you
@@ -92,7 +92,8 @@ try:
9292
os.environ['PATH_INFO'] = string.join(path[2:], '/')
9393
if ROUNDUPS.has_key(instance):
9494
instance_home = ROUNDUPS[instance]
95-
sys.path.insert(0, instance_home)
95+
module_path, instance = os.path.split(instance_home)
96+
sys.path.insert(0, module_path)
9697
try:
9798
instance = __import__(instance)
9899
finally:
@@ -109,6 +110,9 @@ sys.stdout, sys.stderr = out, err
109110

110111
#
111112
# $Log: not supported by cvs2svn $
113+
# Revision 1.2 2001/07/23 04:31:40 richard
114+
# Fixed the roundup CGI script for updates to cgi_client.py
115+
#
112116
# Revision 1.1 2001/07/22 11:47:07 richard
113117
# More Grande Splite
114118
#

0 commit comments

Comments
 (0)