lua-users home
lua-l archive

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


> The solution I use is to look at _G.arg[0] and work out the base path
>from that; this seems to work fine
> (If anybody _could_ see a potential problem with this method I would
> be grateful)

If you first launch 'lua' standalone interpreter and then run script
with dofile
(this is how I do most of the time), it doesn't work. The table arg is not
defined in this case.