[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Finding and loading Lua files
- From: Asko Kauppi <asko.kauppi@...>
- Date: Fri, 22 Apr 2005 12:08:51 +0300
Bringing up a year+2days old discussion to 2005..
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? Of course, one can set the
LUA_PATH variable, but couldn't (shouldn't) something like
"/usr/share/lua/?.lua;/usr/share/lua/?/?.lua" be built-in by default?
I'm going to do this on fink (OS X) that has things under /sw anyhow,
so possibly need to set LUA_PATH at least temporarily. Still, opinions
20.4.2004 kello 19:15, Ivan Kolev kirjoitti:
I'm solving this problem with a LUA_PATH like: