logical-to-physical ls
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

lookup-file

Synopsis

lookup-file "filename" [-query] ["error-msg"]

Description

Looks for the file or directory filename in the Simics search path, starting with the current working directory. If it is found, its complete path is returned. If it is not found an error will be raised unless the -query argument is given.

The -query argument specifies that the boolean value FALSE is returned when the file is not found instead of raising an error.

The optional error-msg argument adds this string to the default error message shown when the file is not found. It also suppresses the backtrace normally shown when an error is raised.

If filename starts with %simics%, the rest of the path is looked up first in the Simics project, and then in all configured Simics packages. For more information on the %simics% or %script% path markers, see the Simics User's Guide.

Provided By

Simics Core

See Also

file-exists, list-directories
logical-to-physical ls