[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to get the directory of the current executed file?
- From: Tang Daogang <daogangtang@...>
- Date: Fri, 14 Jan 2011 14:46:07 +0800
On Fri, Jan 14, 2011 at 2:28 PM, steve donovan <firstname.lastname@example.org>
Nah, scratch that - sorry I have not had my tea.
On Fri, Jan 14, 2011 at 8:26 AM, steve donovan
> The lfs module from LuaFileSystem is the best known method:
You can look at arg for the script name, and work from there.
Or get the debug information:
-- remember to strip off the starting @
return debug.getinfo(2, "S").source:sub(2)
The debug library seems works on that. Thank you. I find it.