> import os
> if "QUERY_STRING" in os.environ:
>      # CGI script
>
> might work.

Thanks Steve for this suggestion. I did something similar:
    import os
    req = os.getenv('REQUEST_URI')
    if (not req is None) and len(req) > 0:
        web = True

which seemed to work for me.

Rowan

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to