MathGroup Archive 2003

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

Search the Archive

Re: How change $AddOnsDirectory

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41200] Re: [mg41128] How change $AddOnsDirectory
  • From: Murray Eisenberg <murraye at attbi.com>
  • Date: Wed, 7 May 2003 03:51:49 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200305050339.h453dh114053@wolfram.com>
  • Reply-to: murray at math.umass.edu
  • Sender: owner-wri-mathgroup at wolfram.com

Strange, but neither MATHEMATICA_ADDONS nor MATHEMATICA_USERADDONS seems 
to be documented in the Help Browser.  At least these do not appear in 
the Master Index and are not mentioned in the section on File Layout.

Further, they do not behave quite the way you say.  As a system variable 
I set

   MATHEMATICA_ADDONS

to have value d:\Math\AddOns; as an enviroment variable for 
Administrator I set

   MATHEMATICA_USERADDONS

to have that same value.

When I start Mathematica afterwards, the values are

   $AddOnsDirectory
d:\Math\AddOns

   $UserAddOnsDirectory
d:\Math\Addons

-- without any "\Mathematica" appended thereto!

Further, the directory d:\Math\AddOns now has subdirectories 
Applications, Autoload, FrontEnd, Kernel, Licensing, SystemFiles.  Under 
the FrontEnd directory there, there is now a very short init.m 
consisting of:

SetOptions[$FrontEnd,
AutoOpenNotebooks->{},
ScreenRectangle->{{0, 1280}, {0, 979}}
]

Still in C:\Documents and Settings\Administrator\Application 
Data\Mathematica\FrontEnd there is a considerably longer init.m, of the 
kind I expect to see, beginning:

SetOptions[$FrontEnd,
NotebookDirectory:>FrontEnd`FileName[{  ...

This is after I held down Shift-Control when restarting Mathematica, 
just to be sure preferences are restored to defaults.

So now I'm not only confused by the discrepancy between what you say the 
two environment variables do and what happened, but also by the issue of 
what kind of preferences are stored in what init.m's where.

I note that the Help Browser _does_ refer to a separate environment 
variable MATHEMATICA_PREFERENCES.

John Fultz wrote:
> You can set the default value of the parent of $AddOnsDirectory and 
> $UserAddOnsDirectory via an environment variable, which works for both FE 
> and kernel.
> 
> MATHEMATICA_ADDONS for $AddOnsDirectory
> MATHEMATICA_USERADDONS for $UserAddOnsDirectory
> 
> Mathematica will append '\Mathematica' to whatever you set, so if, for 
> example, you do:
> 
> MATHEMATICA_ADDONS=D:\Math\AddOnsMma
> 
> then the value of $AddOnsDirectory will be...
> 
> "D:\\Math\\AddOnsMMa\\Mathematica"
> 
> $AddOnsDirectory and $UserAddOnsDirectory in the kernel are intended to be 
> equivalent to something like $TopDirectory, which is to say that they're 
> constants derived from the system.
> 
> Incidentally, the above is true for all operating systems; it is not 
> Windows-specific.
> 
> Sincerely,
> 
> John Fultz
> jfultz at wolfram.com
> User Interface Group
> Wolfram Research, Inc.
> 
> 
> On Sun, 4 May 2003 03:57:04 -0400 (EDT), Murray Eisenberg wrote:
> 
>>How do I supply a permanent new location for $AddOnsDirectory.  This is
>>under Windows XP.
>>
>>The HelpBrower documentation under "File Layout" seems to say that if I
>>set a value for $AddOnsDirectory in an init.m file located somewhere on
>>the ConfigurationPath, that value should be used.
>>
>>So in [top directory]\Configuration\FrontEnd -- where [top directory] is
>>the directory containing Mathematica.exe -- I created a file init.m.  In
>>that file I tried, separately, all three of the following:
>>
>>$AddOnsDirectory="D:/Math/AddOnsMma"
>>
>>$AddOnsDirectory="D:\\Math\\AddOnsMma"
>>
>>$AddOnsDirectory=FrontEnd`FileName[{"D:", "Math", "AddOnsMma"}]
>>
>>None of these seems to have any effect, however:  Once I open
>>Mathematica, the value of $AddOnsDirectory is still its original value,
>>namely,
>>
>>"C:\Documents and Settings\All Users\Application Data\Mathematica"
> 
> 
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305



  • Prev by Date: Re: Using InterpolateRoot Function in Mathematica
  • Next by Date: Orderless for Plus? was: Re: Redefine[Plus] - problem
  • Previous by thread: Re: How change $AddOnsDirectory
  • Next by thread: Re: How change $AddOnsDirectory