lua-users home
lua-l archive

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


> On 5.6.2015, at 14:33, Scott Morgan <blumf@blueyonder.co.uk> wrote:
> 
> In Windows the package.path and .cpath fields accept LUA_EXEC_DIR '!' as
> the location of the executable running Lua, but in the Linux builds this
> isn't the case. (see: luaconf.h, loadlib.c)
> 
> Why the different behaviours between platforms?
> 
> Scott
> 

In LuaDist this feature[1] is supported on most other platforms as it is essential for locating modules installed alongside the executable. As you can see from the code it is VERY platform specific and in few cases unreliable.

This is the only modification applied to Lua in the LuaDist distribution.

pd

[1] https://github.com/LuaDist/lua/blob/master/src/loadlib_rel.c#L144

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail