7 May
2010
7 May
'10
10:52 a.m.
Peter Münster wrote:
On Thu, May 06 2010, Hans Hagen wrote:
\startbuffer[test] bla = nil \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = "../?.lua;;" require("mytest") \stopluacode \stoptext dofile "../mytest.lua"
Bad example...
mytest.lua is a module, so it must be loaded with require:
You cannot always replace 'require' with 'dofile', and for this reason it is important that package.path actually works as explained in the lua manual. (escrito had similar problems, and other external lua modules will run into it as well). Best wishes, Taco