Back: 1.3.2.3 DOCUMENT comments Forward: 1.3.2.5 The custom.i file and i-start/ directory     FastBack: 1. Basic Ideas Up: 1.3.2 Include files FastForward: 2. Using Array Syntax         Top: Yorick: An Interpreted Language Contents: Table of Contents     About: About This Document

1.3.2.4 Where Yorick looks for include files

You can specify a complete path name (including directories) for the file in an #include directive. More usually, you will use a relative path name. In that case, Yorick tries to find the file relative to these four directories, in this order:

  1. Your current working directory.
  2. ~/yorick’, that is, the ‘yorick’ subdirectory of your home directory.
  3. Y_SITE/i’, where ‘Y_SITE’ is the directory where Yorick was installed at your site (help will tell you where this is).
  4. Y_SITE/contrib

You can use the set_path command in your ‘custom.i’ file in order to change this path, but you should be very cautious if you do this.

The ‘~/yorick’ directory is where you put all of the Yorick include files you frequently use, which have not been placed in the include or contrib directories at your site. You can also override an include file in one of these places by placing a file of the same name in your ‘~/yorick’ directory.


Back: 1.3.2.3 DOCUMENT comments Forward: 1.3.2.5 The custom.i file and i-start/ directory     FastBack: 1. Basic Ideas Up: 1.3.2 Include files FastForward: 2. Using Array Syntax         Top: Yorick: An Interpreted Language Contents: Table of Contents     About: About This Document