Re: How change $AddOnsDirectory
- To: mathgroup at smc.vnet.net
- Subject: [mg41143] Re: [mg41128] How change $AddOnsDirectory
- From: John Fultz <jfultz at wolfram.com>
- Date: Mon, 5 May 2003 02:43:45 -0400 (EDT)
- Reply-to: jfultz at wolfram.com
- Sender: owner-wri-mathgroup at wolfram.com
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"
- Follow-Ups:
- Re: Re: How change $AddOnsDirectory
- From: Murray Eisenberg <murraye@attbi.com>
- Re: Re: How change $AddOnsDirectory