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/python310.zip', '/usr/local/lib/python3.10', '/usr/local/lib/python3.10/lib-dynload', '/usr/local/lib/python3.10/site-packages']
biocase.wrapper.functions.getAbsoluteCWDirectory() /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 */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_CONNECTION Keep-Alive
HTTP_HOST localhost:81
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_VIA 1.1 biocase.zfmk.de
HTTP_X_FORWARDED_FOR 13.59.2.242
HTTP_X_FORWARDED_HOST biocase.zfmk.de
HTTP_X_FORWARDED_SERVER biocase.zfmk.de
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 10.255.0.2
REMOTE_PORT 36490
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 10.255.1.226
SERVER_ADMIN webmaster@localhost
SERVER_NAME localhost
SERVER_PORT 81
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
Apache/2.4.59 (Debian) Server at localhost Port 81
SERVER_SOFTWARE Apache/2.4.59 (Debian)