Hi Alwyn, We recently changed the way import interacts with Lua's package system that may affect this. There are now two paths that are searched for code:
LUA_PATH, which is loaded as pure Lua code TERRA_PATH, which is loaded as Terra-Lua code Both are used by import/require to find code. It's possible you have LUA_PATH set to find mol.t instead of TERRA_PATH. I tried to update the docs to reflect this but if I've missed a section, let me know and I'll update it. -- Zach On Mon, Feb 23, 2015 at 1:49 AM, Husselmann, Alwyn < [email protected]> wrote: > Hi all, Zach, > > I have a peculiar problem with the current github Terra (current as of > right now). The examplelanguage1.t import works fine, but mine is strange > in that : > > import "mol" > > causes mol.t elsewhere in the terrapath to be loaded, but it appears as > if it is being executed with only Lua, and no Terra. ie. Terra not > recognised, but is happy with Lua. > > I haven't been able to put together a minimum example yet. Is there > anything that springs to mind on this perhaps? > > Many thanks, > Alwyn Husselmann > > _______________________________________________ > terralang mailing list > [email protected] > https://mailman.stanford.edu/mailman/listinfo/terralang > >
_______________________________________________ terralang mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/terralang
