Fix problem in workspace for relative directory
This commit is contained in:
parent
b37099358e
commit
9e5bf485df
|
@ -133,7 +133,8 @@ local function relative_path(ref_dir, dir)
|
||||||
for k = i, #ref_ls do
|
for k = i, #ref_ls do
|
||||||
ups = ups .. "../"
|
ups = ups .. "../"
|
||||||
end
|
end
|
||||||
return ups .. table.concat(dir_ls, "/", i)
|
local rel_path = ups .. table.concat(dir_ls, "/", i)
|
||||||
|
return rel_path ~= "" and rel_path or "."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue