Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > system facilities > path
next | previous | forward | backward | up | index | toc

path -- list of directories to look in

Description

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.

     /home/m2user/.Macaulay2/code/
     /home/m2user/.Macaulay2/local/share/Macaulay2/
i1 : stack path

o1 = ./
     ../../../../../Macaulay2/packages/
     ../../../usr-dist/common/share/Macaulay2/
i2 : path = append(path, "~/resolutions/"); stack path

o3 = ./
     ../../../../../Macaulay2/packages/
     ../../../usr-dist/common/share/Macaulay2/
     ~/resolutions/

For the programmer

The object path is a list.