-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best way to set LUA_PATH? #20
Comments
Hi. Thanks for working with GopherLua. The best way that you might want is to set
|
That seems sensible, thank you :)
I have a Here's what my
Here's what my
I'm new to Lua, so please excuse me if this is obvious. But from what I gather from the reference, this should load the module, right? Thanks |
to
Refer to Lua5.1 - package.loaders section for further information. |
Thank you so much, I forgot about the .lua wildcard. |
Hi,
I love working with gopher-lua so far. The documentation is lacking tough.
What would be the best way to set the LUA_PATH? In order to load modules from subdirectories located relative to the executed .lua file, I need to set it to the directory of that .lua file.
I discovered that the Lua vm uses system env variables set via os.Setenv(). Is there a way to set / append to the LUA_PATH just for one vm (e.g. vm.Setenv())?
Thanks
The text was updated successfully, but these errors were encountered: