2%> Return a scalar MATLAB
string containing the
3%>
root directory of the ParaMonte library package.
6%> ``path`` : A scalar MATLAB
string containing the
root
7%> directory of the ParaMonte library package.<br>
12%> path = pm.lib.path.root()
17%> \include{lineno} example/
lib/path/
root/main.m
19%> \include{lineno} example/
lib/path/
root/main.out.m
24%> \JoshuaOsborne, May 21 2024, 7:51 PM, University of Texas at Arlington<br>
25%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
26%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
28 persistent path_persistent
29 if isempty(path_persistent)
30 [path_persistent, ~, ~] = fileparts(mfilename('fullpath'));
31 path_persistent =
string(pm.sys.path.
abs(fullfile(path_persistent, "..", "..")));
33 path = path_persistent;
34 %addpath(genpath(tree.
root),'-begin');
function abs(in path, in style)
Return the Get absolute canonical path of a file or folder.
function lib()
Return a scalar MATLAB string containing the path to the lib directory of the ParaMonte library packa...
function root()
Return a scalar MATLAB string containing the root directory of the ParaMonte library package.