This is such a simple question, but it doesn’t seem to work for me.
I want to set the path that LUA uses to look for modules (.lua files) as described here: http://www.thijsschreijer.nl/blog/?p=1025
So I can use module.lua from main without using the explicit path require(SubDir.moduleA) syntax, but rather just require(module.luaA) because I want moduleB to be able to use moduleA directly
top
|
- main.lua
-SubDir
|
|- moduleA.lua
|-moduleB.lua
Reason is I have two projects, and I want them to use some shared code.