import getpass


def get_user_name(override=None):
    """Return name of current user, eg 'pi' or 'developer'.

    Keyword Arguments:
        override {[string]} -- [description] (default: {None})

    Returns:
        [string] -- [user name]
    """
    if override:
        return override
    else:
        return getpass.getuser()