<< CL_norm Utilities CL_plot_earthMap >>

CelestLab >> Utilities > CL_path

CL_path

Looks for a file in directories

Calling Sequence

[path] = CL_path(name [,directories])

Description

Parameters

name:

(string) Name of file to be looked for (1x1)

directories:

(string, optional) Directories to be searched (1xN) (default is %CL_PATH or '.'

path:

(string) File path (1x1)

Authors

Examples

dirlist = ['.', '/users/scripts', 'D:/data' , 'D:/data/*'];
// Looks for script toto.sce in the given directories :
CL_path('toto.sce', dirlist);
// loads script using implicit directory list:
%CL_PATH = ['.', '/users/scripts', 'D:/data'];
exec(CL_path('toto.sce'));
// Absolute file path:
abs_path = fullpath(CL_path('toto.sce'))
<< CL_norm Utilities CL_plot_earthMap >>