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

getSkillPath

getSkillPath( 
) 
=> l_strings / nil

Description

Returns the current SKILL path. The SKILL path is used in resolving relative paths for some SKILL functions.

Arguments

None

Value Returned

l_strings

Directory paths from the current SKILL path setting. The result is a list where each element is a path component as specified by setSkillPath.

nil

The last call to setSkillPath gave nil as its argument.

Examples

setSkillPath('("." "~" "~/cpu/test1")) 
=> ("~/cpu/test1")
getSkillPath() 
=> ("." "~" "~/cpu/test1")

The example below shows how to add a directory to the beginning of your search path (assuming a directory “~/lib”).

setSkillPath(cons("~/lib" getSkillPath())) 
=> ("~/lib" "~/cpu/test1")
getSkillPath() 
=> ("~/lib" "." "~" "~/cpu/test1")

Related Topics

Environment Functions

/O and File Handling


Return to top
 ⠀
X