File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ local exports = {}
29
29
-- GEOS clue
30
30
---- ----------------------------------------------------------------------------
31
31
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 )
33
35
if geos_path == nil then
34
36
error (" Failed to find internal library" )
35
37
end
Original file line number Diff line number Diff line change 21
21
local ffi = require (' ffi' )
22
22
require (' gis.proj4_cdef' )
23
23
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 )
25
27
if proj_path == nil then
26
28
error (" Failed to find internal library" )
27
29
end
You can’t perform that action at this time.
0 commit comments