summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/boot.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/boot.lua')
-rw-r--r--plugins/boot.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/boot.lua b/plugins/boot.lua
index 11ee6682bae..2e5b46e679d 100644
--- a/plugins/boot.lua
+++ b/plugins/boot.lua
@@ -2,7 +2,8 @@
-- copyright-holders:Miodrag Milanovic
require('lfs')
-local function env_replace(str)
+-- add helper to lfs for plugins to use
+function lfs.env_replace(str)
local pathsep = package.config:sub(1,1)
local function dorep(val)
ret = os.getenv(val)
@@ -19,7 +20,7 @@ local function env_replace(str)
end
return str
end
-local dir = env_replace(manager:options().entries.pluginspath:value())
+local dir = lfs.env_replace(manager:options().entries.pluginspath:value())
package.path = package.path .. ";" .. dir .. "/?.lua;" .. dir .. "/?/init.lua"