[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Best practices in Lua project structure
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 15 Jun 2010 15:08:47 +0200
On Tue, Jun 15, 2010 at 2:57 PM, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> Hello,
> what is the init.lua for?
See http://batbytes.com/luafaq/#T1.19
in particular:
[[
Why is there the pattern '/usr/local/share/lua/5.1/?/init.lua'? This
is allows for self-contained packages of modules. So if there was a
directory 'mylib' on the Lua path, then require 'mylib' would load
'mylib/init.lua'.
]]
steve d.