<< isunix | OS functions | setenv >> |
c = searchenv(filename, env_name) |
a string: environment variable name.
a string: filename searched in environment variable.
a cell of strings: full paths found in environment variable.
searchenv Searches for a file using environment paths.
[modules, paths] = getmodules();
env_value = '';
for p = paths
env_value = [env_value, pathsep, p];
end
setenv('MY_PATH_ENV', env_value);
c = searchenv('loader.m', 'MY_PATH_ENV')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET