[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to get the directory of the current executed file?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 14 Jan 2011 08:26:09 +0200
On Fri, Jan 14, 2011 at 8:14 AM, Tang Daogang <firstname.lastname@example.org> wrote:
> But I don't know how to get it in Lua, any suggestion?
The lfs module from LuaFileSystem is the best known method:
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> = lfs.currentdir()