Next: The custom.i file and i-start/ directory, Previous: DOCUMENT comments, Up: Include files [Contents]
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:
- Your current working directory.
- ~/yorick, that is, the yorick subdirectory of your home directory.
- Y_SITE/i, where Y_SITE is the directory where Yorick was installed at your site (help will tell you where this is).
- 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.