Urgh, didn't realise pwd wasn't available on Windows :-(. What about just using getpass.getuser() everywhere? According to the docs it falls back to using pwd where that's supported anyway: https://docs.python.org/3.8/library/getpass.html
Sure we can use the getpass.getuser() everywhere.
Are you working on that, or do you want me to update it and commit?
python web/pgAdmin4.py ERROR : Failed to create the directory /var/lib/pgadmin: [Errno 13] Permission denied: '/var/lib/pgadmin' HINT : Create the directory /var/lib/pgadmin, ensure it is writeable by 'dpage', and try again, or, create a config_local.py file and override the SQLITE_PATH setting per https://www.pgadmin.org/docs/pgadmin4/4.22/config_py.html