def GetConsoleUser():
  stat_info = os.stat('/dev/console')
  console_user = pwd.getpwuid(stat_info.st_uid)[0]
  return console_user
Returns current console user.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/gmacpyutil.py/GetConsoleUser