Skip to content

fidlej/luapath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

When requiring luapath, $HOME/luapath is added to lua path. Lua is then able to find $HOME/luapath/*.lua modules and $HOME/luapath/*/init.lua packages.

Example usage:

# Creating ~/luapath and adding symlinks there
mkdir ~/luapath
cd ~/luapath
ln -s path/to/mymodule.lua
ln -s path/to/mypackage

# Running with luapath
luajit -lluapath mycode.lua

About

Adds ~/luapath/ to package.path.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages