From 8cb1de7af299a4f6d77a1d40f7ad352ed794a2ff Mon Sep 17 00:00:00 2001 From: Charles <61986161+charlesseizilles@users.noreply.github.com> Date: Fri, 12 Dec 2025 14:06:36 +0100 Subject: [PATCH] replace $(projectdir) by os.projectdir() --- docs/api/description/global-interfaces.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/description/global-interfaces.md b/docs/api/description/global-interfaces.md index c1347744..67dfcefe 100644 --- a/docs/api/description/global-interfaces.md +++ b/docs/api/description/global-interfaces.md @@ -344,7 +344,7 @@ add_moduledirs(dirs: , ...) The builtin modules are placed in the 'xmake/modules' directory, but for user-defined modules for a specific project, you can configure additional module directories in the 'xmake.lua` file. ```lua -add_moduledirs("$(projectdir)/modules") +add_moduledirs(os.projectdir() .. "/modules") ``` xmake will load the given module in the given directory when calling [`import`](/api/scripts/builtin-modules/import). @@ -373,7 +373,7 @@ add_plugindirs(dirs: , ...) The builtin plugins are placed in the 'xmake/plugins' directory, but for user-defined plugins for a specific project, you can configure additional plugin directories in the 'xmake.lua` file. ```lua -add_plugindirs("$(projectdir)/plugins") +add_plugindirs(os.projectdir() .. "/plugins") ``` xmake will load all plugins in the given directory.