| 1 | #!/usr/local/bin/v run |
| 2 | |
| 3 | import v.tests.project_with_modules_having_submodules.mod1.submodule as m |
| 4 | |
| 5 | println('This script is located inside: ' + resource_abs_path('')) |
| 6 | |
| 7 | println('The result of calling m.f is: ' + m.f().str()) |
| 8 | |
| 9 | /* |
| 10 | NB: this main program v script is under bin/ , |
| 11 | but it *still* can find mod1, because the parent project has v.mod, |
| 12 | so v module lookup for this bin/main.vsh file will find mod1 through |
| 13 | relation to the parent ../v.mod file |
| 14 | */ |
| 15 |