lua-users home
lua-l archive

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


> By the way nowhere is the LUA_PATH_DEFAULT documented in Lua documentation. 
> I guess reading the source is a good idea.

LUA_PATH_DEFAULT is restriced to luaconf.h. It's not part of the API.

The manual says:

      At start-up, Lua initializes this variable with the value of the
      environment variable LUA_PATH_5_2 or the environment variable LUA_PATH
      or with a default path defined in luaconf.h, if those environment
      variables are not defined

      http://www.lua.org/manual/5.2/manual.html#pdf-package.path

Notice "with a default path defined in luaconf.h".

The manual does not says precisly what that path is because it is
system-dependent, being different for Windows and for Unix.