tea.system Module

tea.system.get_username()

Get the username from the environment or password database.

First try various environment variables, then the password database. This works on Windows as long as USERNAME is set.