Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 4022

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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>applicationDirectory -- the path to the user's application directory</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_application__Directory__Suffix.html">next</a> | <a href="_append_lp__Basic__List_cm__Thing_rp.html">previous</a> | <a href="_application__Directory__Suffix.html">forward</a> | <a href="_append_lp__Basic__List_cm__Thing_rp.html">backward</a> | up | <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>
<hr/>
<div><h1>applicationDirectory -- the path to the user's application directory</h1>
<div class="single"><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>applicationDirectory()</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="___String.html">string</a></span>, the path to the user's application directory</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div><p>The function <a href="_install__Package.html" title="load and install a package and its documentation ">installPackage</a>, by default, installs packages under the application directory.  At program startup, unless the <tt>-q</tt> option is provided on the command line, an entry will be added to the <a href="_path.html" title="list of directories to look in">path</a> so packages can be loaded from there by <a href="_load__Package.html" title="load a package">loadPackage</a> and <a href="_needs__Package.html" title="load a package if not already loaded">needsPackage</a>.  Moreover, the <a href="_initialization_spfile.html" title="">initialization file</a>, if found there, will be run.</p>
<p>The function <a href="_application__Directory__Suffix.html" title="suffix that determines the user's application directory">applicationDirectorySuffix</a> determines the value of <tt>applicationDirectory</tt>, and can be modified by the user.</p>
<table class="examples"><tr><td><pre>i1 : applicationDirectory()

o1 = /builddir/.Macaulay2/</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_application__Directory__Suffix.html" title="suffix that determines the user's application directory">applicationDirectorySuffix</a> -- suffix that determines the user's application directory</span></li>
</ul>
</div>
<div class="waystouse"><div class="single"><h2>Code</h2>
<pre>../../d/startup.m2.in:241:32-246:16: --source code:
     applicationDirectory = () -> (
          getenv "HOME" | "/" |
          if instance(applicationDirectorySuffix, Function)
          then applicationDirectorySuffix()
          else applicationDirectorySuffix
          );</pre>
</div>
</div>
</div>
</body>
</html>