| script (MEL) | Only available in MEL | 
		  | searchPathArray  | In categories: System, Files | 
       
      
		
      
      Go to: Synopsis. Return value. MEL examples. 
      
       
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.
	  
      
      None
      
      
      
    Arguments
    
    
       | Variable Name | Variable Type | Description | 
    | $name | string | Name of the file being searched for | 
| $pathArray | string[] | Array of directory paths. | 
    
    
	string $path[] = { ".", "$HOME/maya/projects/default" };
	searchPathArray( "workspace.mel", $path );