<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>path -- list of directories to look in</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_quit.html">next</a> | <a href="_process__I__D.html">previous</a> | <a href="_quit.html">forward</a> | <a href="_process__I__D.html">backward</a> | <a href="_system_spfacilities.html">up</a> | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <div><a href="index.html" title="">Macaulay2Doc</a> > <a href="___The_sp__Macaulay2_splanguage.html" title="">The Macaulay2 language</a> > <a href="_system_spfacilities.html" title="">system facilities</a> > <a href="_path.html" title="list of directories to look in">path</a></div> <hr/> <div><h1>path -- list of directories to look in</h1> <div class="single"><h2>Description</h2> <div><p>A list of strings containing names of directories in which <a href="_load.html" title="read Macaulay2 commands">load</a>, <a href="_input.html" title="read Macaulay2 commands and echo">input</a>, <a href="_load__Package.html" title="load a package">loadPackage</a>, <a href="_needs__Package.html" title="load a package if not already loaded">needsPackage</a>, and <a href="_install__Package.html" title="load and install a package and its documentation ">installPackage</a> 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.</p> <p>After the core Macaulay2 files are loaded, unless the command line option <tt>-q</tt> is encountered, the following subdirectories will be prepended to the path, based on the value of the <a href="_application__Directory.html" title="the path to the user's application directory">applicationDirectory</a> for your system.</p> <pre> /builddir/.Macaulay2/code/ /builddir/.Macaulay2/local/share/Macaulay2/ /builddir/.Macaulay2/local/common/share/Macaulay2/</pre> <table class="examples"><tr><td><pre>i1 : path o1 = {./, /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/, ------------------------------------------------------------------------ /builddir/build/BUILD/Macaulay2-1.3.1-r10737/StagingArea/common/share/ ------------------------------------------------------------------------ Macaulay2/} o1 : List</pre> </td></tr> <tr><td><pre>i2 : path = append(path, "~/resolutions/") o2 = {./, /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/, ------------------------------------------------------------------------ /builddir/build/BUILD/Macaulay2-1.3.1-r10737/StagingArea/common/share/ ------------------------------------------------------------------------ Macaulay2/, ~/resolutions/} o2 : List</pre> </td></tr> </table> </div> </div> <div class="waystouse"><h2>For the programmer</h2> <p>The object <a href="_path.html" title="list of directories to look in">path</a> is <span>a <a href="___List.html">list</a></span>.</p> </div> </div> </body> </html>