Assorted Python variables

Variable Value
__file__ /opt/biocase/www/utilities/printenv.cgi
os.path.dirname( __file__ ) /opt/biocase/www/utilities
inspect.getfile( lambda:None ) /opt/biocase/www/utilities/printenv.cgi
os.path.abspath( __file__ ) /opt/biocase/www/utilities/printenv.cgi
Python Sys Path ['.', '/opt/biocase/lib', '/opt/biocase/www/utilities', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7']
os.path.abspath( inspect.getfile( lambda:None ) ) /opt/biocase/www/utilities/printenv.cgi
biocase.wrapper.functions.getAbsoluteCWDirectory() /opt/biocase/www/utilities
os.getcwd() /opt/biocase/www/utilities

Webserver Environment

Variable Value
CONTEXT_DOCUMENT_ROOT /opt/biocase/www
CONTEXT_PREFIX /biocase
DOCUMENT_ROOT /var/www/html
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 biocase.zfmk.de
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_VIA 1.1 biocase.zfmk.de
HTTP_X_FORWARDED_FOR 35.175.190.77
HTTP_X_FORWARDED_HOST biocase.zfmk.de
HTTP_X_FORWARDED_SERVER biocase.zfmk.de
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
QUERY_STRING
REMOTE_ADDR 172.19.0.1
REMOTE_PORT 39396
REQUEST_METHOD GET
REQUEST_SCHEME http
REQUEST_URI /biocase/utilities/printenv.cgi
SCRIPT_FILENAME /opt/biocase/www/utilities/printenv.cgi
SCRIPT_NAME /biocase/utilities/printenv.cgi
SERVER_ADDR 172.19.0.3
SERVER_ADMIN webmaster@localhost
SERVER_NAME biocase.zfmk.de
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.4.10 (Debian) Server at biocase.zfmk.de Port 80
SERVER_SOFTWARE Apache/2.4.10 (Debian)