Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: $Path variable

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15105] Re: $Path variable
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 12 Dec 1998 03:59:06 -0500
  • Organization: Universitaet Leipzig
  • References: <74nvqq$45g@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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