Hopefully, I'm doing something wrong, and the answer is easy. Let's say I have a structure like this,
project/conf.lua project/main.lua project/lib/log.lua
I'm appending lib to the package.path in main.lua
package.path = package.path .. ';lib/?.lua;'
When log.lua is in the project root, of course there is no problem. But I can't figure out how to require any file from a subdirectory when packaged and run on Android.
love . from the command line works ok on Ubuntu.
... shows that the current file is
main, but I have no other path information to make a more explicit declaration. I've also tried
./lib/?.lua (starting with dot slash).
Must all of my files reside in one project root directory?