Using (or really misusing) Path.resolve() in Python
Briefly

Using Path.resolve() may lead to unexpected bugs, especially when resolving symlinks that deviate from intended paths, causing issues when trying to access related files.
When Python transitioned to pathlib, it didn't fully replace os.path functionalities. Using both libraries together often introduces complications in path manipulation and resolution.
The recommended practice in Python documentation suggests that resolving symlinks before walking filesystem paths can mislead your navigation, resulting in incorrect parent directories.
For correct path handling, especially with user-supplied paths, it's better to utilize os.path functions to get absolute paths without resolving symlinks.
Read at Pydev
[
|
]