[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Penlight library
- From: "Pierre Chapuis" <catwell@...>
- Date: Sun, 6 Oct 2013 10:56:50 +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"
Wouldn't requiring "pl.init" instead of pl solve the problem
in that case? Easier than changing lua_path...
--
Pierre Chapuis