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

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 any necessary terminal slashes. 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.
i1 : path

o1 = {./, ../../../../Macaulay2/m2/, ../../../../Macaulay2/packages/,
     ------------------------------------------------------------------------
     ../tutorial/final/, ../m2/, ../../../../Macaulay2/test/,
     ------------------------------------------------------------------------
     ../../../../Macaulay2/test/engine/}

o1 : List
i2 : path = append(path, homeDirectory | "resolutions/")

o2 = {./, ../../../../Macaulay2/m2/, ../../../../Macaulay2/packages/,
     ------------------------------------------------------------------------
     ../tutorial/final/, ../m2/, ../../../../Macaulay2/test/,
     ------------------------------------------------------------------------
     ../../../../Macaulay2/test/engine/, /home/dan/resolutions/}

o2 : List

For the programmer

The object path is a list.