def get_user():
    if HAS_PWD:
        return pwd.getpwuid(os.geteuid()).pw_name
    else:
        return win32api.GetUserName()
Get the current user
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/get_user