Merge pull request #41023 from tvbeat/lua-path-fix
lua packages: add init.lua to modules search path
This commit is contained in:
commit
4ca9f84416
@ -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