Skip to content

Commit

Permalink
Call luarocks.cfg.init if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcoding committed Jun 16, 2020
1 parent 3494d56 commit d45cbc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/tarantoolapp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ if _TARANTOOL == nil then
end
print('Tarantool version: ' .. _TARANTOOL)

local ok, luarocks_cfg = pcall(require, 'luarocks.core.cfg')
if ok and luarocks_cfg.init ~= nil then
luarocks_cfg.init()
end

require 'strict'.on()
package.path = '../?.lua;'..package.path

Expand Down

0 comments on commit d45cbc1

Please sign in to comment.