Re: finding package in ExtraPackages`Enhancements`
- To: mathgroup at smc.vnet.net
- Subject: [mg54140] Re: finding package in ExtraPackages`Enhancements`
- From: David <habud at hotmail.com>
- Date: Fri, 11 Feb 2005 03:34:27 -0500 (EST)
- References: <200502091427.JAA02776@smc.vnet.net> <opslxwdoz7iz9bcq@monster.ma.dl.cox.net> <cuf5ij$gnu$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Not sure if you already know this, but you need to set a Mathematica
WinXP environment variable to top level path of your separate 3rd party
add-ons path. EG,
MATHEMATICA_USERBASE=D:\YourDesiredPath\Mathematica
This can be done under the WinXP "System Properties->Advanced" tab, then
look at the bottom for the "Environment Variables" button. You'll need
to restart Mathemetica after applying this new variable.
With this set, Mathematica will search for 3rd-party packages under the
the path:
D:\YourDesiredPath\Mathematica\Applications
Also, if you want a package autoloaded, add the subdirectory "Autoload", eg:
D:\YourDesiredPath\Mathematica\Autoload
Hope this helps.
Also, your personalized preferences should get stored under
D:\YourDesiredPath\Mathematica.
BTW, I believe WRI's doc's on this are very poorly organized. You can't
find all this info in one convenient place.
Murray Eisenberg wrote:
> Moving Enhancements to be a direct subdirectory of $UserBaseDirectory
> did NOT work for me! Neither
>
> <<Enhancements`RootSearch`
>
> nor
>
> <<RootSearch`
>
> find RootSearch.m.
>
> One thing that does work is to move Enhancements to be a subdirectory of
> ToFileName[{$UserBaseDirectory, "Applications"}].
>
> But what I was hoping for was some way of setting some environment
> variable, e.g., so that Mathematica would search subdirectories of
> $UserBaseDirectory other than just Applications and its subdirectories.
>
>
> DrBob wrote:
>
>>Eliminate the "ExtraPackages" layer in the directory structure.
>>
>>Bobby
>>
>>On Wed, 9 Feb 2005 09:27:48 -0500 (EST), Murray Eisenberg
>><murray at math.umass.edu> wrote:
>>
>>
>>>Various packages suggest they should be installed in subdirectories of
>>>ExtraPackages. For example, Ersek's RootSearch.m, is to be installed in
>>>subdirectory Enhancements of ExtraPackages.
>>>
>>>I keep all such 3rd party add-ons in a directory tree separate from the
>>>Mathematica install directory tree. Namely, in a directory to which
>>>$UserBaseDirectory points. Thus, RootSearch.m is in directory:
>>>
>>> ToFileName[{$UserBaseDirectory, "ExtraPackages", "Enhancements"}]
>>>
>>>Yet still a command such as
>>>
>>> <<Enhancements`RootSearch`
>>>
>>>or
>>>
>>> Needs["Enhancements`RootSearch`"]
>>>
>>>fails to find its target.
>>>
>>>How can I make this work?
>>>
>>>Platform: Mathematica 5.1 for Windows (XP).
>>>
>>
>>
>>
>
- References:
- finding package in ExtraPackages`Enhancements`
- From: Murray Eisenberg <murray@math.umass.edu>
- finding package in ExtraPackages`Enhancements`