[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Unofficial FAQ Addition
- From: Patrick Rapin <toupie300@...>
- Date: Thu, 6 Oct 2011 10:10:54 +0200
> 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.