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

truename

truename( 
t_string 
) 
=> t_truename

Description

Tries to find the specified file (t_string) and returns the full path to the file.

It uses the current SKILL path for relative paths. A path that is anchored to the current directory, for example, ./, ../, or ../../.., and so on, is not considered as a relative path.

Arguments

t_string

A string specifying the file name.

Value Returned

t_truename

The truename or full path of the specified file.

Examples

getSkillPath()
=> ("." "~")
setSkillPath(append1(getSkillPath() "~/skill"))
=> nil
getSkillPath()
=> ("." "~" "~/skill")
getWorkingDir()
=> "/home/skillproj/work"
truename("./runtest")
=> "/home/skillproj/work/runtest"
truename("mycode.il")
=> "/home/skillproj/skill/mycode.il"
truename(".cshrc")
=> "/home/skillproj/.cshrc"
truename("~/old/code.il")
=> nil ; this file/directory does not exist

Related Topics

Input Output Functions

which


Return to top
 ⠀
X