diff options
Diffstat (limited to '')
-rw-r--r-- | bruiser/defaults.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bruiser/defaults.lua b/bruiser/defaults.lua index 8f1692b..70ecefb 100644 --- a/bruiser/defaults.lua +++ b/bruiser/defaults.lua @@ -1,7 +1,7 @@ -- bruiser default script. -- This is run everytime bruiser is called. --- By default bruiser will look for a file named defaults.lua in the same --- directory as its executable. you can change the file using the --luadefault +-- By default bruiser will look for a file named defaults.lua in the same +-- directory as its executable. you can change the file using the --luadefault -- option. -- adds luarocks' path and cpath to bruiser @@ -12,7 +12,7 @@ function default_luarocks_modules() for line in luarocks_handle:lines() do local path = string.match(line, "LUA_PATH%s*=%s*('.+')") local cpath = string.match(line, "LUA_CPATH%s*=%s*('.+')") - if path ~= nil then + if path ~= nil then package.path = package.path..";"..string.sub(path, 2, -2) end if cpath ~= nil then |