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

getWorkingDir

getWorkingDir( 
) 
=> t_currentDir

Description

Returns the current working directory as a string.

The result is put into a ~/prefixed form if possible by testing for commonality with the current user’s home directory. For example, ~/test would be returned in preference to /usr/mnt/user1/test, assuming that the home directory for user1 is /usr/mnt/user1 and the current working directory is /usr1/mnt/user1/test.

Ensure that the logged-in user has execute permissions for the directory.

Arguments

None

Value Returned

t_currentDir

The name of your current working directory.

Examples

getWorkingDir() 
=> "~/project/cpu/layout"

Related Topics

Environment Functions

getTempDir


Return to top
 ⠀
X