ABSOLUTE_PATH

The ABSOLUTE_PATH function is used to get an absolute path for a file or directory, given a path that is relative to the project file.

ABSOLUTE_PATH was added in XJTAG v2.7.3.

Syntax

ABSOLUTE_PATH( STRING relativePath )

Parameters

relativePath
A path to a directory or file that is assumed to be relative to the project.

Return value

A STRING value containing the absolute path. If relativePath is already an absolute path, then it is returned unmodified.

Example

STRING relativePath := "xje\\test.xje";
STRING absolutePath := ABSOLUTE_PATH(relativePath);
PRINT("relative path = ", relativePath, "\n");
PRINT("absolute path = ", absolutePath, "\n");

Output

Assuming that the current project is stored in c:\projects\test:

relative path = xje\test.xje
absolute path = c:\projects\test\xje\test.xje