I have some shared Lua modules (e.s. strict.lua) in a different folder path w.r.t. my project folder (it's two levels above)
When running from the IDE I use:
package.path = package.path..';..\\..\\_common\\?.lua'
require 'strict'
and it's fine.
However, I have troubles when building a standalone exe.
I tried the following:
rtc -i .\panel.ico -o myapp.exe -lkeyboard -lnet -lc -w main.lua . %shared_path%\_common\strict.lua
When running the exe by clicking the exe in the File Manager window, it works.
But running the exe from a command shell fails with a dialog window saying: "module 'strict' not found