prosody
changeset 8271 e21d82551e05
parent 8206 a7863f4aae65
parent 8267 23aee8ccfe9b
child 8288 433b2a41351f
equal deleted inserted replaced
8256:3a6f5b0f56f0 8271:e21d82551e05
    18 
    18 
    19 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    19 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20 
    20 
    21 local function is_relative(path)
    21 local function is_relative(path)
    22 	local path_sep = package.config:sub(1,1);
    22 	local path_sep = package.config:sub(1,1);
    23         return ((path_sep == "/" and path:sub(1,1) ~= "/")
    23 	return ((path_sep == "/" and path:sub(1,1) ~= "/")
    24 	or (path_sep == "\\" and (path:sub(1,1) ~= "/" and path:sub(2,3) ~= ":\\")))
    24 		or (path_sep == "\\" and (path:sub(1,1) ~= "/" and path:sub(2,3) ~= ":\\")))
    25 end
    25 end
    26 
    26 
    27 -- Tell Lua where to find our libraries
    27 -- Tell Lua where to find our libraries
    28 if CFG_SOURCEDIR then
    28 if CFG_SOURCEDIR then
    29 	local function filter_relative_paths(path)
    29 	local function filter_relative_paths(path)