Within a file i have several imports from the same directory. If i change the location of this file, rather than having to add one to one '../' inside import, i'd like to use a template to build them and make my life easier when it comes to change paths.
I'd like to know if i could achieve this objective with templates. This is an example of what i expect to get:
template importRoot(p: untyped) ???
importRoot a/b/c.nim # Resolves to import full/path/a/b/c.nim
importRoot a/a.nim # Resolves to import full/path/a/a.nim