main.nim
helper.nim
In the sub_module_1 and sub_module_2 modules there is this statement:
import helper
When compiling 'nim c main.nim' in the main_directory this works, but it feels kind of odd for the sub_modules to be able to reach the helper module one directory above theirs implicitly.
Is is better to write:
import "../helper"
in the sub_modules or should the modules/directories be restructured in some way?Just an FYI.
The above code does NOT work with Nim 0.14.0 anymore! The imports now have to be explicit, like the 'import "../helper"' above.
Thanks for clearing this up.