Assorted Python variables

Variable Value
__file__ /var/www/BiocaseProvider_2.4.2/www/utilities/printenv.cgi
os.path.dirname( __file__ ) /var/www/BiocaseProvider_2.4.2/www/utilities
inspect.getfile( lambda:None ) /var/www/BiocaseProvider_2.4.2/www/utilities/printenv.cgi
os.path.abspath( __file__ ) /var/www/BiocaseProvider_2.4.2/www/utilities/printenv.cgi
Python Sys Path ['/var/www/BiocaseProvider_2.4.2/lib/biocase', '/var/www/BiocaseProvider_2.4.2/lib', '/var/www/BiocaseProvider_2.4.2/www/utilities', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/HTMLgen', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/PIL', '/usr/lib/python2.4/site-packages/cairo', '/usr/lib/python2.4/site-packages/gst-0.10', '/usr/lib/python2.4/site-packages/gtk-2.0']
os.path.abspath( inspect.getfile( lambda:None ) ) /var/www/BiocaseProvider_2.4.2/www/utilities/printenv.cgi
biocase.wrapper.functions.getAbsoluteCWDirectory() /var/www/BiocaseProvider_2.4.2/www/utilities
os.getcwd() /var/www/BiocaseProvider_2.4.2/www/utilities

Webserver Environment

Variable Value
DOCUMENT_ROOT /var/www
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
HTTP_HOST biology.africamuseum.be
HTTP_IF_MODIFIED_SINCE Mon, 24 Sep 2018 07:03:46 EDT
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH /usr/local/bin:/usr/bin:/bin
QUERY_STRING
REMOTE_ADDR 54.221.75.115
REMOTE_PORT 48052
REQUEST_METHOD GET
REQUEST_URI /BiocaseProvider_2.4.2/www/utilities/printenv.cgi
SCRIPT_FILENAME /var/www/BiocaseProvider_2.4.2/www/utilities/printenv.cgi
SCRIPT_NAME /BiocaseProvider_2.4.2/www/utilities/printenv.cgi
SERVER_ADDR 193.190.223.48
SERVER_ADMIN webmaster@localhost
SERVER_NAME biology.africamuseum.be
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/5.1.2 mod_perl/2.0.2 Perl/v5.8.7 Server at biology.africamuseum.be Port 80
SERVER_SOFTWARE Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/5.1.2 mod_perl/2.0.2 Perl/v5.8.7