Skip to content

Commit fa8ed57

Browse files
committed
Add support for the new .rocks loader in Tarantool
1 parent 561766f commit fa8ed57

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gis/ST.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ local exports = {}
2929
-- GEOS clue
3030
--------------------------------------------------------------------------------
3131

32-
local geos_path = package.searchpath('gis.lib', package.cpath)
32+
local geos_path = package.search ~= nil and
33+
package.search('gis.lib') or
34+
package.searchpath('gis.lib', package.cpath)
3335
if geos_path == nil then
3436
error("Failed to find internal library")
3537
end

gis/projection.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
local ffi = require('ffi')
2222
require('gis.proj4_cdef')
2323

24-
local proj_path = package.searchpath('gis.lib', package.cpath)
24+
local proj_path = package.search ~= nil and
25+
package.search('gis.lib') or
26+
package.searchpath('gis.lib', package.cpath)
2527
if proj_path == nil then
2628
error("Failed to find internal library")
2729
end

0 commit comments

Comments
 (0)