Skip to content

Commit 983b74e

Browse files
committed
use file path as source
1 parent 48d218c commit 983b74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/plugin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ local function initPlugin(uri)
106106
scp:set('pluginPath', pluginPath)
107107

108108
local env = setmetatable(interface, { __index = _ENV })
109-
local f, err = load(pluginLua, pluginLua, "t", env)
109+
local f, err = load(pluginLua, '@'..pluginPath, "t", env)
110110
if not f then
111111
log.error(err)
112112
m.showError(scp, err)

0 commit comments

Comments
 (0)