pyfarm.agent.sysinfo.user module

User

Returns information about the current user such as the user name, admin access, or other related information.

pyfarm.agent.sysinfo.user.username()[source]

Returns the current user name using the most native api we can import. On Linux for example this will use the pwd module but on Windows we try to use win32api.

pyfarm.agent.sysinfo.user.is_administrator()[source]

Return True if the current user is root (Linux) or running as an Administrator (Windows).