[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Penlight library
- From: David Heiko Kolf <david@...>
- Date: Sat, 05 Oct 2013 20:03:53 +0200
Andre Arpin wrote:
> No the problem is that you have to change your lua_path to use
> require 'pl'
>
> This should be documented.
The default path does include "?/init.lua", but unfortunately only in
the package installation directories (unless I missed something). See
luaconf.h:
> #define LUA_ROOT "/usr/local/"
> #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
> #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
> #define LUA_PATH_DEFAULT \
> LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
> LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" "./?.lua"