Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

changeWorkingDir

changeWorkingDir( 
[ S_name ] 
) 
=> t

Description

Changes the working directory to the specified working directory.

Different error messages are printed if the operation fails because the directory does not exist or you do not have search (execute) permission.

Use this function with care: if “.” is either part of the SKILL path or the libraryPath. Changing the working directory can affect the visibility of SKILL files or design data.

Arguments

S_name

Name of the working directory you want to use. Can be specified with either a relative or absolute path. If you specify a relative path, the shell environment is used to search for the directory, not the SKILL path.

Value Returned

t

The function executes successfully. Prints an error message if the directory you tried to change to does not exist. Prints a permission denied message if you do not have search permission.

Examples

Assume, there is a directory /usr5/design/cpu with appropriate permission and there is no test directory under /usr5/design/cpu.

changeWorkingDir( "/usr5/design/cpu") 
=> t

The following example signals an error about a non-existent directory.

changeWorkingDir( "test")

Related Topics

Environment Functions

cdsPlat

createDir


Return to top
 ⠀
X