From d09c74c69306fa5b3deb0db68552c9223b6d76df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 22 Jul 2022 15:24:40 +0800 Subject: refactor `require-path` --- script/plugin.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script/plugin.lua') diff --git a/script/plugin.lua b/script/plugin.lua index bdd02ea8..2a5ee27f 100644 --- a/script/plugin.lua +++ b/script/plugin.lua @@ -77,6 +77,10 @@ local function initPlugin(uri) local interface = {} scp:set('pluginInterface', interface) + if not scp.uri then + return + end + local pluginPath = ws.getAbsolutePath(scp.uri, config.get(scp.uri, 'Lua.runtime.plugin')) log.info('plugin path:', pluginPath) if not pluginPath then -- cgit v1.2.3