Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6361

Re: Change $UserBaseDirectory

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Change $UserBaseDirectory
Date 2011-11-11 09:56 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j9irha$8c7$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 11/9/11 at 6:22 AM, he.frauendorfer@t-online.de (E. Frauendorfer)
wrote:

>I already asked for help to change $UserBaseDirectory. Maybe that's
>not the best solution to my problem and quiz's I should elaborate a
>bit more.

>I am using a new computer with a small primary SSD for the OS and
>secondary hard disc to hold all the big info. benefiting from the
>fast seek times a SSD has to offer.

>Now the $UserBaseDirectory and $BaseDirectory are in C:\... and my
>applications are elsewhere in D:\... or E:\.... Programs that use
>$UserBaseDirectory to establish the Path to a great number of
>Packages are now failing. My thought was to change the
>$UserBaseDirectory to remedy that, but maybe there is a better way
>to do that.

You don't really say what you mean by failing. I am going to
guess this means a package fails to load using Get or Needs. If
so, this is easily remedied without changing the values in
$UserBaseDirectory. Simply edit the file init.m that can be
found in the directory returned by

=46ileNames["*", ToFileName[$UserBaseDirectory, "Kernel"]]

to add something that modifies the directories contained in
$Path. Something like

$Path=Flatten@{additionalPath2Search,$Path}

It is the directories listed in $Path that are searched by Get
and Needs to load packages. You are free to add any directory
you can access to $Path. And by placing this command in the
init.m file, it will modify $Path once the kernel is launched.
To me, this is simpler solution than trying to modify variables
such as $UserBaseDirectory.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Change $UserBaseDirectory Bill Rowe <readnews@sbcglobal.net> - 2011-11-11 09:56 +0000

csiph-web