Re: Finding and loading Lua files
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Finding and loading Lua files
- From: Mike Pall <mikelu-0504@...>
- Date: 2005年4月22日 14:54:25 +0200
Hi,
Asko Kauppi wrote:
> I was surprised that 5.1w4 still has:
>
> #define LUA_PATH_DEFAULT \
> "./?.lua;" LUA_LDIR "/?.lua;" LUA_LDIR "/?/init.lua"
>
> This means, there's no common default for where system-wide library
> scripts would be installed, is there?
How did you manage to miss the three lines above that define? :-)
#define LUA_ROOT "/usr/local"
#define LUA_LDIR LUA_ROOT "/share/lua/5.1"
#define LUA_CDIR LUA_ROOT "/lib/lua/5.1"
Bye,
Mike