25.02.2019, 07:52
You can either place libraries/code parts in store/libs directory, then you can load them the via:
Or you can place them together with daemon but then you will need to specify full path. Use this short wrapper function:
Code:
require('applibs.mylib') -- custom.mylib for older versions
Or you can place them together with daemon but then you will need to specify full path. Use this short wrapper function:
Code:
function loadlib(path)
return dofile('/data/apps/store/daemon/' .. path .. '.lua')
end
loadlib('myapp/mylib')