Path

Path
is an option for Get and related functions which gives a list of directories to search in attempting to find an external file.

DetailsDetails

  • The default setting is Path:>$Path.
  • The possible settings for Path are the same as those for $Path.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

When looking up a file, search a particular directory:

In[1]:=
Click for copyable input

Create a file for this example so there is something to search for:

In[2]:=
Click for copyable input

With the default system search path the file is not found:

In[3]:=
Click for copyable input
Out[3]=

The file is found when the Path option is set to the directory:

In[4]:=
Click for copyable input
Out[4]=
New in 4
New to Mathematica? Find your learning path »
Have a question? Ask support »