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

prependInstallPath

prependInstallPath( 
S_name 
) 
=> t_string

Description

Prepends the Cadence DFII installation path to a file or directory and returns the resulting path as a string.

Possibly adds a slash (/) separator if needed. The typical use of this function is to compute one member of a list passed to setSkillPath.

Arguments

S_name

File or directory name to append to the installation path. If a symbol is given, its print name is used.

Value Returned

t_string

String formed by prepending the installation path to the argument path.

Examples

getInstallPath() 
=> ("/usr5/cds/4.2")

Assume this is your install path.

prependInstallPath( "etc/context" ) 
=> "/usr5/cds/4.2/etc/context"

A slash (/) is added.

prependInstallPath( "/bin" ) 
=> "/usr5/cds/4.2/bin"
setSkillPath( list("." prependInstallPath("bin")
prependInstallPath("etc/context")) )
=> nil
getSkillPath()
=> ("." "/usr5/cds/4.2/bin" "/usr5/cds/4.2/etc/context")

Related Topics

Environment Functions

getSkillPath


Return to top
 ⠀
X