variable to be transmitted from a CGI script to a module

jcj jcjouffre at bigfoot.com
Fri Sep 19 05:14:55 EDT 2003


"M-a-S" <NO-MAIL at hotmail.com> wrote in message news:<Qpmab.5255$9G2.4299 at twister.southeast.rr.com>...
> Read also the thread "How to pass parameter to a module?"
> M-a-S
> 

you're right, the proper solution is :

import sys
print sys.modules['__main__'].myVariable

thanks a lot




More information about the Python-list mailing list