[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Making luaconf.h settings available in Lua
- From: Miles Bader <miles@...>
- Date: Sun, 27 Feb 2011 09:46:59 +0900
Sam Roberts <email@example.com> writes:
> The fourth line is a string that, in a path in Windows, is replaced
> by the executable's directory. Default is '!'.
> The executable is the lua.exe, or the script.lua?
> And why don't posix users get this?
I don't think it's possible in a portable way to locate the executable's
[Looking at argv and possibly searching getenv("PATH") _often_ works,
but is not guaranteed.]
Fast, small, soon; pick any 2.