beautypg.com

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

Page 141

background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

132

10.22 Include Path Directive

This feature allows you to specify additional folders in which the parser looks for included files. By
default, the script parser tries to include a file using a name specified in the %include directive. If
it cannot 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:\Usb3Generation\"

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

%include_path

=

"C:\Usb3Generation\Include\"

%include

"MyDefs.ginc"

# The parser looks for the file

# in the following folders:

# 1. Application folder

# 2. C:\Usb3Generation\
# 3. C:\Usb3Generation\Include\

Main

{

# Do something.

}