[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why is LUA_EXEC_DIR Windows only?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 5 Jun 2015 14:44:46 +0200
On Fri, Jun 5, 2015 at 2:33 PM, Scott Morgan <blumf@blueyonder.co.uk> wrote:
> Why the different behaviours between platforms?
The short answer is that it's surprisingly tricky to get the
executable's actual location on the filesystem on non-Windows systems;
argv[0] is not your friend. A common tactic is to customize a
sandboxed Lua by modifying luaconf.h (e.g. luabuild)