lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Setting LUA_PATH from lua script
From
: steve donovan <steve.j.donovan@
...
>
Date
: Wed, 22 May 2013 08:13:50 +0200
On Wed, May 22, 2013 at 6:21 AM, Sean Conner
<
sean@conman.org
>
wrote:
Yes, but in Lua you reference it as package.path (and package.cpath for
modules written in C).
For instance, if your script and its modules are in d:\myprog, then your main script can do this:
package.path = "d:\\myprog\\?.lua;" .. package.path
pl.app.require_here() implements the pattern:
https://github.com/stevedonovan/Penlight/blob/master/lua/pl/app.lua
References
:
Setting LUA_PATH from lua script
,
Muqtheear S
Re: Setting LUA_PATH from lua script
,
Sean Conner
Prev by Date:
Re: Setting LUA_PATH from lua script
Next by Date:
Re: [ANN] LDoc 1.3.12
Previous by thread:
Re: Setting LUA_PATH from lua script
Next by thread:
Question about Lua logos
Index(es):
Date
Thread