I have bumped into the module pathutils in compiler folder: https://nim-lang.org/docs/compiler/pathutils.html
It seems very nice and I was wondering if there is a straightforward way to use it in projects. import compiler/pathutils does not work unless I add nim root folder manually and I know of no other way than to add my specific AbsoluteDir. This would not be portable if I wanted to add it as a dependency to a library.
this of course has nothing to do with the fact that every year I spend a bit of time debugging my (advent-of) code because I am wrongly processing "2020/input02.txt" as a string instead of the real input... 😜
one way
import ../compiler/pathutils