Environment variables in cgi

Michael Ströder michael.stroeder at inka.de
Thu Feb 3 04:22:33 EST 2000


Maurizio Manetti wrote:
> 
> In my little script I import the powerful module cgi, then I ty to
> access the dictionary cgi.environ but it seems not to exist! Why?
> If use, instead, the os.environ dictionary (importing the os module)
> everything works perfectly.

What's wrong with using os.environ? It does exactly what you want.

Ciao, Michael.



More information about the Python-list mailing list