lua packages: add init.lua to modules search path
This commit is contained in:
parent
e22d072c64
commit
00349e27e5
@ -29,9 +29,9 @@ else
|
||||
if [[ $LUA_PATH = *"$package_path"* ]]; then return; fi
|
||||
|
||||
if [[ -z $LUA_PATH ]]; then
|
||||
export LUA_PATH="$package_path/?.lua"
|
||||
export LUA_PATH="$package_path/?.lua;$package_path/?/init.lua"
|
||||
else
|
||||
export LUA_PATH="$LUA_PATH;$package_path/?.lua"
|
||||
export LUA_PATH="$LUA_PATH;$package_path/?.lua;$package_path/?/init.lua"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user