ROUTINE_DIR

The ROUTINE_DIR function returns the path to the calling routine.

Examples

Create the following routine and save it in a file called ex_routine_dir.pro:

pro ex_routine_dir

; Where is my current routine located?

print, ROUTINE_DIR()

end

When you compile and run this procedure, IDL prints (depending upon your paths):

C:\Users\myname\IDLWorkspace\Default\

Syntax

Result = ROUTINE_DIR( )

Return Value

Returns a scalar string containing the fully-qualified path of the calling routine, including the trailing slash character.

Arguments

None.

Keywords

None.

Version History

8.7

Introduced

See Also

ROUTINE_INFO, ROUTINE_FILEPATH