[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: loading lua scripts relative to an app's path
- From: Gavin Wraith <gavin@...>
- Date: Fri, 06 Oct 2006 10:10:47 +0100
In message <1079b050610060102g63d45083of3f8a6e0b00786f9@mail.gmail.com> you wrote:
> How does eveyone determine the location of scripts relative to their
> application? I've been racking my brain on this one and haven't found
> a solution yet. I tried reading the directory "./" and got the hard
> drive's root. Are there other ways? I'm trying to overcome the
> problem of my app being run on different computers and not wanting to
> ask the user to do any more work than download the app.
I use arg[0].
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/