It's an expressive style and you can use both of them in formal and informal writing. "Weary" is kind of 'tired" but used for thing "way", which is very creative and interesting. There's a common say that : No sight is free of sadness. And "weary way" is a particular example.