This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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.
  • The default setting is Path:>$Path.
  • The possible settings for Path are the same as those for $Path.
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