File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -918,6 +918,7 @@ \subsection{\expr{sdm} global object}
918918 \begin {itemize }
919919 \item \luaexpr {"currentdir"}: current directory;
920920 \item \luaexpr {"homedir"}: home directory of the current user;
921+ \item \luaexpr {"appconfigdir"}: SDM framework configuration directory;
921922 \item \luaexpr {"currentscript"}: a path to the currently executed script, or \luaexpr {nil} if it cannot be obtained;
922923 \item \luaexpr {"currentscriptdir"}: a path to the directory containing the currently executed script, or \luaexpr {nil} if it cannot be obtained;
923924 \item \luaexpr {"program"}: a path to the host program executable (e.g. \shellcmd {sdmhost} or \shellcmd {sdmconsole});
Original file line number Diff line number Diff line change @@ -304,6 +304,9 @@ int LuaBridge::LuaMethod_path(LuaServer &lua) {
304304 else if (arg==" homedir" ) {
305305 lua.pushValue (Path::home ().str ());
306306 }
307+ else if (arg==" appconfigdir" ) {
308+ lua.pushValue (Config::appConfigDir ().str ());
309+ }
307310 else if (arg==" currentscript" ||arg==" currentscriptdir" ) {
308311 auto const &chunkName=lua.currentChunkName ();
309312 if (chunkName.empty ()||chunkName[0 ]!=' @' ) lua.pushValue (LuaValue ());
You can’t perform that action at this time.
0 commit comments