Hi; The following code that works: #! /usr/bin/python
import string import cgitb; cgitb.enable() import cgi import MySQLdb import sys,os from sets import Set import fpformat cwd = os.getcwd() sys.path.append(cwd) from login import login from particulars import ourOptions form = cgi.FieldStorage() store = form.getfirst('store') cat = form.getfirst('cat') id = form.getfirst('id') patientID = form.getfirst('patientID') try: browser = form.getfirst('browser', 'all') except: browser = headers() os.chdir('%s/..' % cwd) sys.path.append(os.getcwd()) from templateFrame import top, bottom os.chdir(cwd) Why doesn't it work if I move the bottom imports to the top? The form values get lost, even though I chdir to cwd. TIA, beno -- The Logos has come to bear http://logos.13gems.com/
-- http://mail.python.org/mailman/listinfo/python-list