Go to: Synopsis. Return value. MEL examples.

Synopsis

searchPathArray( string $name, string $pathArray[] )

Looks for a readable file in the directories listed in pathArray.

Notes:
Intial white space in $name is ignored (chopped)
Name beginning with "/" are returned as-is
Empty string entries in pathArray are skipped, use . for cwd.
Path elements beginning in "$" are treated as environment variables.

Return value

None

Arguments

Variable Name Variable Type Description
$namestringName of the file being searched for
$pathArraystring[]Array of directory paths.

MEL examples

	string $path[] = { ".", "$HOME/maya/projects/default" };
	searchPathArray( "workspace.mel", $path );