Mercurial > prosody-hg
comparison core/configmanager.lua @ 10206:46a5f2bf5ee0
core.configmanager: Removed code related to complement_lua_path
| author | João Duarte <jvsDuarte08@gmail.com> |
|---|---|
| date | Fri, 16 Aug 2019 14:02:51 -0700 |
| parents | 83541f0ff14f |
| children | a83233559253 |
comparison
equal
deleted
inserted
replaced
| 10205:ff8de86b75f0 | 10206:46a5f2bf5ee0 |
|---|---|
| 13 | 13 |
| 14 local envload = require"util.envload".envload; | 14 local envload = require"util.envload".envload; |
| 15 local deps = require"util.dependencies"; | 15 local deps = require"util.dependencies"; |
| 16 local resolve_relative_path = require"util.paths".resolve_relative_path; | 16 local resolve_relative_path = require"util.paths".resolve_relative_path; |
| 17 local glob_to_pattern = require"util.paths".glob_to_pattern; | 17 local glob_to_pattern = require"util.paths".glob_to_pattern; |
| 18 local complement_lua_path = require"util.paths".complement_lua_path; | |
| 19 local path_sep = package.config:sub(1,1); | 18 local path_sep = package.config:sub(1,1); |
| 20 local get_traceback_table = require "util.debug".get_traceback_table; | 19 local get_traceback_table = require "util.debug".get_traceback_table; |
| 21 | 20 |
| 22 local encodings = deps.softreq"util.encodings"; | 21 local encodings = deps.softreq"util.encodings"; |
| 23 local nameprep = encodings and encodings.stringprep.nameprep or function (host) return host:lower(); end | 22 local nameprep = encodings and encodings.stringprep.nameprep or function (host) return host:lower(); end |
| 25 local _M = {}; | 24 local _M = {}; |
| 26 local _ENV = nil; | 25 local _ENV = nil; |
| 27 -- luacheck: std none | 26 -- luacheck: std none |
| 28 | 27 |
| 29 _M.resolve_relative_path = resolve_relative_path; -- COMPAT | 28 _M.resolve_relative_path = resolve_relative_path; -- COMPAT |
| 30 _M.complement_lua_path = complement_lua_path; | |
| 31 | 29 |
| 32 local parser = nil; | 30 local parser = nil; |
| 33 | 31 |
| 34 local config_mt = { __index = function (t, _) return rawget(t, "*"); end}; | 32 local config_mt = { __index = function (t, _) return rawget(t, "*"); end}; |
| 35 local config = setmetatable({ ["*"] = { } }, config_mt); | 33 local config = setmetatable({ ["*"] = { } }, config_mt); |
