How to check version of Python under CGI

Johann observer at NOSPAM.space.pl
Thu Jun 13 04:57:21 EDT 2002


On 13 Jun 2002 10:46:09 +0200, Sylvain Thenault <thenault at nerim.net>
wrote:

>> I would like to write a simple CGI script to get as much info about
>> installed Python as possible. But I even don't know how to check
>> version of Python. :( From shell command  it is easy, but how to do it
>> from CGI script? Eg.
>
>print "Python version: %s" % sys.version

Thanx. Do you know how to check what modules are installed? E.g. I
would like to check if PYANA or other xml modules are installed.

--
Johann



More information about the Python-list mailing list