[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suggestion for Lua 5.3.0 -- require search paths
- From: Petite Abeille <petite.abeille@...>
- Date: Sat, 5 Apr 2014 22:41:31 +0200
On Apr 5, 2014, at 10:09 PM, tonyp@acm.org wrote:
> I think the first place to look for required modules would be the (main) script’s directory. That also allows to override general libraries with customized versions using the same name but placing them in the app’s folder.
One relatively painless way to achieve this is to (1) look at where the main script was loaded from (e.g. debug.getinfo( 1, 'S' ).source) (2) Add that path to package.path (3) There is no step (3).
- References:
- Running multiple threads in a lua state, Milind Gupta
- Re: Running multiple threads in a lua state, Javier Guerra Giraldez
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Luiz Henrique de Figueiredo
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Sean Conner
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Sean Conner
- Re: Running multiple threads in a lua state, Rena
- Re: Running multiple threads in a lua state, Coroutines
- Suggestion for Lua 5.3.0 -- require search paths, tonyp