Is there an issue with the script reference for include()? The docs says:
include('lib/somelib.lua') will first look in the directory of the current script. This allows using relative paths to use libraries local to the script.
My current folder structure:
script.lua
lib/
target.lua
In script.lua, include('lib/target.lua') results in:
including /home/we/dust/code/lib/target.lua.lua
### SCRIPT ERROR: load fail
cannot open /home/we/dust/code/lib/target.lua.lua: No such file or directory
It seems like if .lua is present in the include’s filename, it adds it again.