Paths of Righteousness

When I think of the word “righteous,” positive connotations don’t come to mind immediately. For example, when someone is called “self-righteous,” that certainly isn’t a compliment! Thinking of people who are considered “righteous” may elicit a picture of someone adhering to rigid fundamentalism or legalistic religion. So, what did the Psalmist intend to convey with the phrase “paths of righteousness”?