[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Installing and locating scripts
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 4 Mar 2013 11:16:08 +0200
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.