Directories

Most relevant directories involved in a Mathematica - xAct installation.

Jose M. Martin-Garcia
(c) 2003-2007, under GPL
Instituto de Estructura de la Materia, CSIC, Madrid  (SPAIN)

jmm@iem.cfmac.csic.es
http://metric.iem.csic.es/Martin-Garcia/

The examples in this notebook assume a username  jmm and have been all performed in Mathematica 5.2.

I thank Gilles Esposito-Farese for his help with Mac.

Date[]

Directories. Linux

This is the directory from which the Mathematica command was called:

$InitialDirectory

This is the home directory of the user calling Mathematica:

$HomeDirectory

The base directory for system-wide files to be loaded by Mathematica:

$BaseDirectory

The base directory for user-specific files to be loaded by Mathematica:

$UserBaseDirectory

The top-level directory in which your Mathematica installation resides:

$InstallationDirectory

The full path:

$Path

There are three natural places for xAct:

Select[%, StringMatchQ[#, "*Applications"] &]

We shall recommend, as Mathematica does, the first two. In our case we have a single-user installation:

\(FileNames["xAct", {$UserBaseDirectory, $BaseDirectory, $InstallationDirectory}, Infinity]\)

The $xActDirectory would be therefore:

First[%]

Directories. Mac OS X

This is the directory from which the Mathematica command was called:

$InitialDirectory

This is the home directory of the user calling Mathematica:

$HomeDirectory

The base directory for system-wide files to be loaded by Mathematica:

$BaseDirectory

The base directory for user-specific files to be loaded by Mathematica:

$UserBaseDirectory

The top-level directory in which your Mathematica installation resides:

$InstallationDirectory

The full path:

$Path

There are three natural places for xAct:

Select[$Path, StringMatchQ[#, "*Applications"] &]

We shall recommend, as Mathematica does, the first two. In our case we have a system-wide installation:

\(FileNames["xAct", {$UserBaseDirectory, $BaseDirectory, $InstallationDirectory}, Infinity]\)

The $xActDirectory would be therefore:

First[%]

Directories. Windows XP

This is the directory from which the Mathematica command was called:

$InitialDirectory

This is the home directory of the user calling Mathematica:

$HomeDirectory

The base directory for system-wide files to be loaded by Mathematica:

$BaseDirectory

The base directory for user-specific files to be loaded by Mathematica:

$UserBaseDirectory

The top-level directory in which your Mathematica installation resides:

$InstallationDirectory

The full path:

$Path

There are three natural places for xAct:

Select[%, StringMatchQ[#, "*Applications"] &]

We shall recommend, as Mathematica does, the first two. In our case we have a single-user installation:

\(FileNames["xAct", {$UserBaseDirectory, $BaseDirectory, $InstallationDirectory}, Infinity]\)

The $xActDirectory would be therefore:

First[%]