Get the directory or path to the file.

Appeal:

int res =  shell_func("get_path", string what, string result);

The what variable specifies the type of the returned path:

"rootconfig" - directory where the list of configurations (tsprglist) LabPP_Automat is located;

"tsimages" is the directory where the icons of the LabPP_Automat configuration are located;

"tsprg" is the directory where the programs of the current LabPP_Automat configuration are located;

"lib" is the directory where the library elements of the current LabPP_Automat configuration are located;

"rootaddons" is the directory where the LabPP_Automat addons itself or another application that launched the current script for execution;

"tmp" is the directory for temporary files, by default, or set by the SETCFG command("tmpfolder", string sTMPFolder);

"currentcpp" is the directory where the current script is located;

"currentcppfiles" is the "files" subdirectory.

"currentcppfilename" is the file name of the current script (if it is launched from a file and not created on the fly from a string);

"curdir" - current directory;

The result is written to the result variable