lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Mar 4, 2013 at 10:45 AM, Thijs Schreijer
<thijs@thijsschreijer.nl> wrote:
> 2) Use a bootstrap script that does the locating and only then starts the Lua script

A similar strategy is used by pl.app.require_here

http://stevedonovan.github.com/Penlight/api/modules/pl.app.html

Say we have a main program, and a set of app-specific modules in
'lua'.  Then calling app.require_here 'lua' in the main script will
update package.path appropriately.