lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On 30 April 2014 12:37, steve donovan <steve.j.donovan@gmail.com> wrote:
First point is that you can set package.path within your Lua state, no
need to put it into each file.
Ok. 

Second, it should be package.path = "0:?.lua"  because this variable
is a set of _patterns_ that Lua will use, substituting the module name
for ? each time.

Thanks Steve.
I'm still getting the "nil value" error but I'll do some more test...
I. 


--
"Don't find fault, find a remedy" (H.Ford)
-------------------------------------------------------------------------
"Beer is proof that God loves us and wants us
to be happy" (Benjamin Franklin)
-------------------------------------------------------------------------