Macaulay2 » Documentation
Packages » Macaulay2Doc :: rootPath
next | previous | forward | backward | up | index | toc

rootPath

Synopsis

Description

This string may be concatenated with an absolute path to get one understandable by external programs. Currently, this makes a difference only under Microsoft Windows with Cygwin, but there it's crucial for those external programs that are not part of Cygwin. Fortunately, programs compiled under Cygwin know were to look for files whose paths start with something like C:/, so it is safe always to concatenate with the value of rootPath, even when it is unknown whether the external program has been compiled under Cygwin.

i1 : fn = temporaryFileName()

o1 = /tmp/M2-1924979-0/0
i2 : rootPath | fn

o2 = /tmp/M2-1924979-0/0

See also

For the programmer

The object rootPath is a string.