lua packages: add init.lua to modules search path

This commit is contained in:
Luka Blaskovic 2018-05-24 13:43:15 +00:00
parent e22d072c64
commit 00349e27e5

View File

@ -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
}