mirror of https://github.com/Hilbis/Hilbish
feat: add user dirs to hilbish module search paths
parent
6d936506c8
commit
3f29dfecb2
|
@ -5,7 +5,10 @@ local fs = require 'fs'
|
|||
|
||||
package.path = package.path .. ';' .. hilbish.dataDir .. '/?/init.lua'
|
||||
.. ';' .. hilbish.dataDir .. '/?/?.lua' .. ";" .. hilbish.dataDir .. '/?.lua'
|
||||
hilbish.module.paths = '?.so;?/?.so'
|
||||
|
||||
hilbish.module.paths = '?.so;?/?.so;'
|
||||
.. hilbish.userDir.data .. 'hilbish/libs/?/?.so'
|
||||
.. ";" .. hilbish.userDir.data .. 'hilbish/libs/?.so'
|
||||
|
||||
table.insert(package.searchers, function(module)
|
||||
local path = package.searchpath(module, hilbish.module.paths)
|
||||
|
|
Loading…
Reference in New Issue