> The cgi is importing itself when you 'import calendar'. Try renaming your
> calendar.py to something
> else like calendar-cgi.py
>
> Kent
Thanks. I was almost there, having noticed that dir(calendar) was
different when run from the script than in an interactive session.
Vicki
P.S. Now to parse
The cgi is importing itself when you 'import calendar'. Try renaming your calendar.py to something
else like calendar-cgi.py
Kent
Vicki Stanfield wrote:
Hi all. I am using Python 2.4 on a Slackware Linux box and am having a
problem importing the calendar module into a program that I am writing.
T
Hi all. I am using Python 2.4 on a Slackware Linux box and am having a
problem importing the calendar module into a program that I am writing.
The code is simple and looks like this:
import cgitb, os, sys
cgitb.enable()
sys.strerr = sys.stdout
import cgi
import time
import calendar
print "Conten