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 */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_CONNECTION close
HTTP_HOST biocase.geocase.it.helsinki.fi
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_FORWARDED 18.188.173.139
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 18.188.173.139
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.6
REMOTE_PORT 57740
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.3
SERVER_ADMIN webmaster@localhost
SERVER_NAME biocase.geocase.it.helsinki.fi
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.0
SERVER_SIGNATURE
Apache/2.4.48 (Debian) Server at biocase.geocase.it.helsinki.fi Port 80
SERVER_SOFTWARE Apache/2.4.48 (Debian)