Name

changeToScriptDirectory — This script will change the working directory into the directory of the active calling script.

Syntax

String changeToScriptDirectory ( ) 

Description

This script will change the working directory into the directory of the active calling script. Patchworks usually makes file references relative to the location of the PIN file. This command can be used to change the working directory to another location.

Note that the directory will be of the currently sourced file. If you put this command into a procedure, then the script that calls this procedure is the active script.

An error will occur if you use this command interactively.

Return value

The new directory path