lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Section 6.3 of the manual states that package.path and package.cpath are initialized by Lua using environment variables LUA_PATH or LUA_CPATH &c. as appropriate.

That seems not to be the case for Lua 5.3.4: the code in question has been moved from loadlib.c in 5.3.3 to lua.c in 5.3.4. Thus, the environment variables may only be processed for the stand-alone lua executable.

What, by the by, was the reason for moving the code out of loadlib.c?

Bob