Given the following directory structure:
With the following file content:
I execute at the root directory:
nim c folder/code.nim
And the output is:
So, staticExec uses the current working directory, while staticRead uses the source file's location. This is inconsistent (and undocumented) and should be fixed one way or the other.