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_CACHE_CONTROL public
HTTP_CUSTOMFRAMEOPTIONSVALUE SAMEORIGIN
HTTP_HOST biocase.smns-bw.org
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_FORWARDED_FOR 44.222.104.206
HTTP_X_FORWARDED_HOST biocase.smns-bw.org
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_SERVER 8d7bbe5bf48f
HTTP_X_REAL_IP 44.222.104.206
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.31.0.1
REMOTE_PORT 55442
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.31.0.16
SERVER_ADMIN webmaster@localhost
SERVER_NAME biocase.smns-bw.org
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.4.59 (Debian) Server at biocase.smns-bw.org Port 80
SERVER_SOFTWARE Apache/2.4.59 (Debian)