def __get_username():
 if (sys.platform == 'win32'):
  return getpass.getuser()
 import pwd
 return pwd.getpwuid(os.geteuid()).pw_name

def __get_username ( ) : if ( sys . platform == 'win32' ) : return getpass . getuser ( ) import pwd return pwd . getpwuid ( os . geteuid ( ) ) . pw_name
returns the effective username of the current process .