Assorted Python variables

Variable Value
os.getcwd() /opt/biocase/www/utilities
__file__ /opt/biocase/www/utilities/printenv.cgi
os.path.dirname( __file__ ) /opt/biocase/www/utilities
os.path.abspath( __file__ ) /opt/biocase/www/utilities/printenv.cgi
inspect.getfile( lambda:None ) /opt/biocase/www/utilities/printenv.cgi
os.path.abspath( inspect.getfile( lambda:None ) ) /opt/biocase/www/utilities/printenv.cgi
Python Sys Path ['.', '/opt/biocase/lib', '/opt/biocase/www/utilities', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/site-packages']
biocase.wrapper.functions.getAbsoluteCWDirectory() /opt/biocase/www/utilities

Webserver Environment

Variable Value
CONTEXT_DOCUMENT_ROOT /opt/biocase/www
CONTEXT_PREFIX
DOCUMENT_ROOT /opt/biocase/www
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_HOST biocase.smns-bw.org
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_FOR 34.239.154.240
HTTP_X_FORWARDED_HOST biocase.smns-bw.org
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SERVER 095883a1f64c
HTTP_X_REAL_IP 34.239.154.240
LC_CTYPE C.UTF-8
PATH /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
QUERY_STRING
REMOTE_ADDR 172.18.0.7
REMOTE_PORT 52894
REQUEST_METHOD GET
REQUEST_SCHEME http
REQUEST_URI /utilities/printenv.cgi
SCRIPT_FILENAME /opt/biocase/www/utilities/printenv.cgi
SCRIPT_NAME /utilities/printenv.cgi
SERVER_ADDR 172.18.0.28
SERVER_ADMIN webmaster@localhost
SERVER_NAME biocase.smns-bw.org
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.4.54 (Debian) Server at biocase.smns-bw.org Port 80
SERVER_SOFTWARE Apache/2.4.54 (Debian)