Re: Best practices in Lua project structure
[
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: 2010年6月15日 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.