MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: $Path variable


Hi Doug,

it is impossible that a simple

AppendTo[$Path,"/export/home/kuska/Notebook3.0/AddOns"]

in Your init.m crash the system. 
On MS-Windows there is a single init.m file on unix you must change it
in ~/.Mathematica/3.0/Kernel/init.m

If You have no 
~/.Mathematica/3.0/Kernel

directory create one and add the init.m file.

To change the $Path only temporal, you may use

Block[{$Path="~/somedir"}
  Get["somepackage`"]
 ] 


Hope that helps
  Jens

Doug Webb wrote:
> 
> Hello,
>   How do I change the list of directories searched in the $Path vaiable
> in Mathematica? None of my books give any indication of how to alter
> $Path, other than a "manual" $Path = "......". I want Mathematica to
> search a particular direcotry for packages I've written, in addition to
> all the current ones. I've looked at my init.m file, it doesn't have
> $Path in it. All my attempts to change it init.m have caused crashes.
> Any help would be appreciated. Thanks.
>     Doug


  • Prev by Date: Re: help!!
  • Next by Date: Re: Re: help
  • Previous by thread: Re: $Path variable
  • Next by thread: Re: $Path variable