next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc > The Macaulay2 language > system facilities > path

path -- list of directories to look in


A list of strings containing names of directories in which load, input, loadPackage, needsPackage, and installPackage should seek files. These strings are simply concatenated with the filename being sought, so should include a terminal slash. One further directory is implicitly searched first: the directory containing the current input file; when input is coming from the standard input, that directory is the current directory of the process.

After the core Macaulay2 files are loaded, unless the command line option -q is encountered, the following subdirectories will be prepended to the path, based on the value of the applicationDirectory for your system.

i1 : stack path

o1 = ./
i2 : path = append(path, "~/resolutions/"); stack path

o3 = ./

For the programmer

The object path is a list.