# HG changeset patch # User Kim Alvefur # Date 1520446927 -3600 # Node ID a4ef8cfa97bd165758321d4f19f95357f8ff9978 # Parent f88bd2428bc2c9289605f1a408192af6371b6d27 util.import: Explicitly export the global import function [luacheck] diff -r f88bd2428bc2 -r a4ef8cfa97bd util/import.lua --- a/util/import.lua Wed Mar 07 19:21:24 2018 +0100 +++ b/util/import.lua Wed Mar 07 19:22:07 2018 +0100 @@ -10,7 +10,7 @@ local unpack = table.unpack or unpack; --luacheck: ignore 113 143 local t_insert = table.insert; -function import(module, ...) +function _G.import(module, ...) local m = package.loaded[module] or require(module); if type(m) == "table" and ... then local ret = {};