hm_pathmanager
Returns all search paths, and runs a specified procedure for each path.
Syntax
hm_pathmanager filename procname
Type
HyperMesh Tcl Query
Description
Returns all search paths, and runs a specified procedure with each path (including filename) as input.
Inputs
- filename
- The name of the file targeted by the procedure. The command searches for this file in
the following directories (in the order listed):
- The paths specified in the environment variable HW_CONFIG_PATH
- The user's home directory
- The current working directory
- procname
- The Tcl procedure to run. This is run for each returned path. The full path and filename are passed as input to the procedure.
Example
To run the ::showpath Tcl procedure (which displays the file path of a specific file) on all paths for the file called setup.dat:
hm_pathmanager setup.dat ::showpath
Errors
if { [ catch {command_name...} ] } {
# Handle error
}