summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-13 00:49:15 +0800
committerruki <[email protected]>2019-09-12 22:55:31 +0800
commit501c9ed36eafa90300d03c77dbbedc29cf733330 (patch)
tree6d8763ee1e3fc054d7f7876799dbe22dff9efb47
parent961b833b032ee06ffd4f5de96a11013edb8498a7 (diff)
improve projectdir display name
-rw-r--r--xmake/core/_xmake_main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua
index ebba707eb..9e80593fe 100644
--- a/xmake/core/_xmake_main.lua
+++ b/xmake/core/_xmake_main.lua
@@ -47,7 +47,8 @@ function _loadfile_impl(filepath, mode, opt)
binary = true -- read file by binary mode, will be faster
displaypath = path.translate("@programdir/" .. path.relative(filepath, xmake._PROGRAM_DIR))
elseif filepath:startswith(xmake._PROJECT_DIR) then
- displaypath = path.translate("@projectdir/" .. path.relative(filepath, xmake._PROJECT_DIR))
+ local projectname = path.filename(xmake._PROJECT_DIR)
+ displaypath = path.translate("@projectdir(" .. projectname .. ")/" .. path.relative(filepath, xmake._PROJECT_DIR))
end
end