Assorted Python variables

Variable Value
os.getcwd() C:\bps3\www\utilities
__file__ C:\bps3\www\utilities\printenv.cgi
os.path.dirname( __file__ ) C:\bps3\www\utilities
os.path.abspath( __file__ ) C:\bps3\www\utilities\printenv.cgi
inspect.getfile( lambda:None ) C:\bps3\www\utilities\printenv.cgi
os.path.abspath( inspect.getfile( lambda:None ) ) C:\bps3\www\utilities\printenv.cgi
Python Sys Path ['.', 'C:\\bps3\\lib', 'C:\\bps3\\www\\utilities', 'C:\\Program Files\\Python39\\python39.zip', 'C:\\Program Files\\Python39\\DLLs', 'C:\\Program Files\\Python39\\lib', 'C:\\Program Files\\Python39', 'C:\\Program Files\\Python39\\lib\\site-packages']
biocase.wrapper.functions.getAbsoluteCWDirectory() C:\bps3\www\utilities

Webserver Environment

Variable Value
COMSPEC C:\WINDOWS\system32\cmd.exe
CONTEXT_DOCUMENT_ROOT C:\bps3\www
CONTEXT_PREFIX /biocase
DOCUMENT_ROOT C:/www
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_HOST ww3.bgbm.org
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Python27;c:\php7;C:\Apache24\bin;C:\Apache24;C:\Program Files\TortoiseSVN\bin;C:\php7\ext\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
QUERY_STRING
REMOTE_ADDR 3.137.175.80
REMOTE_PORT 23759
REQUEST_METHOD GET
REQUEST_SCHEME http
REQUEST_URI /biocase/utilities/printenv.cgi
SCRIPT_FILENAME C:/bps3/www/utilities/printenv.cgi
SCRIPT_NAME /biocase/utilities/printenv.cgi
SCRIPT_URI http://ww3.bgbm.org/biocase/utilities/printenv.cgi
SCRIPT_URL /biocase/utilities/printenv.cgi
SERVER_ADDR 160.45.63.47
SERVER_ADMIN d.roepert@bgbm.org
SERVER_NAME ww3.bgbm.org
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.4.26
SYSTEMROOT C:\WINDOWS
WINDIR C:\WINDOWS