I like to use something like the following (on Linux)
ln -s MyLibDebug.nim MyLib.nim
or
ln -s MyLibInTest.nim MyLib.nim
and then somewhere
import MyLib.nim
but this fails with invalid module name: MyLib.nim
This feels like a bug.
Have you tried
cd whereMyModule lives
ln -s MyLibDebug.nim mylib.nim
import mylib