[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: calling lua library from embedded interpreter
- From: steve donovan <steve.j.donovan@...>
- Date: Sat, 5 Jan 2013 12:52:18 +0200
On Sat, Jan 5, 2013 at 12:48 PM, Thijs Schreijer
> local socket = require("luasocket")
That would be require("socket")
> And see what happens. Probably good to have a look at the paths as well; package.path and package.cpath to see where you should put your libraries.
Precisely. Look at how a system install of LuaSocket is arranged, and
make it locally available.
It's a very powerful thing, being able to set package.path to anything
you want, because it gives you total control of require() in an