summaryrefslogtreecommitdiff
path: root/xmake/core/base
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-08 00:43:18 +0800
committerruki <[email protected]>2017-12-07 22:19:48 +0800
commit185daf2de0ac372ed78d61b69bf65d5a69687295 (patch)
treecea368dac14a2e064ed6dcb43d566e2d1a01781f /xmake/core/base
parent06ff3989aaf30f63c7e0cd0a8e9b2d6133799b43 (diff)
improve project directory
Diffstat (limited to 'xmake/core/base')
-rw-r--r--xmake/core/base/os.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 296b3ec01..e311af3a3 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -827,6 +827,11 @@ function os.programfile()
return xmake._PROGRAM_FILE
end
+-- get the working directory
+function os.workingdir()
+ return xmake._WORKING_DIR
+end
+
-- get the project directory
function os.projectdir()
return xmake._PROJECT_DIR