equal
deleted
inserted
replaced
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) |