beautypg.com

22 include path directive, Include path directive, Include directive – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 116

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

108

10.22 Include Path Directive

This feature allows you to specify additional folders where the parser should look for included
files. By default, the script parser tries to include a file using a name specified in the %include
directive. If it can't find the file, it looks for the file in the Application directory.

Format:

%include_path

[=] "include path"

Note: The include_path name is supposed to end with

"\"

. If it does not end with

"\"

, the script

parser adds

"\"

automatically.

Examples

%include_path

"C:\UwbGeneration\"

# You can also use '=' after %include_path.

%include_path

=

"C:\UwbGeneration\Include\"

%include

"MyDefs.ginc"

# The parser looks for the file

# in the following folders:

# 1. Application folder

# 2. C:\UwbGeneration\

# 3. C:\UwbGeneration\Include\

Main

{

# Do something.

}