MathGroup Archive 2005

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

Search the Archive

Re: finding package in ExtraPackages`Enhancements`

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54205] Re: finding package in ExtraPackages`Enhancements`
  • From: tt at tt.com
  • Date: Sun, 13 Feb 2005 00:21:35 -0500 (EST)
  • References: <200502100747.CAA16644@smc.vnet.net> <200502110833.DAA09193@smc.vnet.net> <cukb7o$lnh$1@smc.vnet.net>
  • Reply-to: tt at tt.com
  • Sender: owner-wri-mathgroup at wolfram.com

Oups, made an error in my previous follow up. I personnally added the
AppenTo[$Path .... thing in the sysinit.m file in the directory
C:\Program Files\Wolfram
Research\Mathematica\5.1\SystemFiles\Kernel\SystemResources\Windows
(obviously a Windows installation)

and not the init.m file in the directory
C:\Program Files\Wolfram Research\Mathematica\5.1\Configuration\Kernel


GL


On Sat, 12 Feb 2005 07:28:56 +0000 (UTC), DrBob <drbob at bigfoot.com>
wrote:

>EVERYTHING in $UserBaseDirectory\Applications is an add-on, so it seems redundant to have one directory called AddOns, let alone two. "ExtraPackages" and "Enhancements" likewise appear unnecessary, uninformative, and redundant. Is there a user package that ISN'T an added-on, extra, enhancement? I don't think so.
>
>Therefore, I suggest putting the package file directly in $UserBaseDirectory\Applications, edit it to remove mention of "Enhancements" from the BeginPackage statement, and load it with <<RootSearch` or Needs["RootSearch`"].
>
>Otherwise, put it in $UserBaseDirectory\Applications\Enhancements (AS IS), and load it with <<Enhancements`RootSearch` or Needs["Enhancements`RootSearch`"].
>
>Bobby
>
>On Fri, 11 Feb 2005 03:33:42 -0500 (EST), Murray Eisenberg <murray at math.umass.edu> wrote:
>
>> I'm still at a loss here... What the installation directions for Ersek's
>> RootSearch.m actually say is to create, if it's not already present, an
>> Enhancements subdirectory of
>>
>>    ToFileName[{$TopDirectory, "AddOns", "ExtraPackages"}]
>>
>> and to put RootSearch.m there.
>>
>> But I want to separate all such add-ons from the Mathematica
>> $TopDirectory tree, so they can readily be preserved during updates from
>> one version of Mathematica to another.
>>
>> So I created a new tree under my $UserBaseDirectory, with top levels:
>>
>>    FileNames[$UserBaseDirectory <> "\\*"]
>> {D:\Math\AddOns\AddOns, D:\Math\AddOns\Applications,
>> D:\Math\AddOns\Autoload, \
>> D:\Math\AddOns\Documentation, D:\Math\AddOns\FrontEnd,
>> D:\Math\AddOns\Kernel, \
>> D:\Math\AddOns\Licensing, D:\Math\AddOns\SystemFiles, D:\Math\AddOns\User}
>>
>> But Mathematica does not seem to search within D:\Math\AddOns\AddOns, so
>> it never finds
>>
>>    D:\Math\AddOns\AddOns\ExtraPackages\Enhancements
>>
>> in which I placed RootSearch.m.
>>
>> Previously, I had tried, instead, to put that ExtraPackages tree at the
>> top level of $UserBaseDirectory, so that:
>>
>>    FileNames[$UserBaseDirectory <> "\\*"]
>> {D:\Math\AddOns\Applications, D:\Math\AddOns\Autoload, \
>> D:\Math\AddOns\Documentation, D:\Math\AddOns\ExtraPackages, \
>> D:\Math\AddOns\FrontEnd, D:\Math\AddOns\Kernel, D:\Math\AddOns\Licensing, \
>> D:\Math\AddOns\SystemFiles, D:\Math\AddOns\User}
>>
>> Notice that the ExtraPackages directory was in that search path, but
>> still Mathematica does not find RootSearch in response to command:
>>
>>    << Enhancements`RootSearch`
>>
>> The trouble seems to be a lack of parallel in the way Mathematica treats
>>
>>    ToFileName[{$TopDirectory, "AddOns", "ExtraPackages"}]
>>
>> and
>>
>>    ToFileName[{$UserBaseDirectory, "AddOns", "ExtraPackages"}]
>>
>> in that the former IS on the search path but the latter is not.
>>
>>
>>
>> David Annetts wrote:
>>> Hi Murray,
>>>
>>>
>>>> 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?
>>>
>>>
>>> As far as I can tell, you have an incorrect path.
>>>
>>> My $UserBaseDirectory is
>>> In[6]:=
>>> FileNames[$UserBaseDirectory<>"\\*"]
>>>
>>> Out[6]=
>>> {C:\Documents and Settings\dwa\Application \
>>> Data\Mathematica\Applications,C:\Documents and Settings\dwa\Application \
>>> Data\Mathematica\Autoload,C:\Documents and Settings\dwa\Application \
>>> Data\Mathematica\FrontEnd,C:\Documents and Settings\dwa\Application \
>>> Data\Mathematica\Kernel,C:\Documents and Settings\dwa\Application \
>>> Data\Mathematica\Licensing,C:\Documents and Settings\dwa\Application \
>>> Data\Mathematica\SystemFiles}
>>>
>>> Of these, only $UserBaseDirectory<>"\\Applications" is has any packages.
>>>
>>> You need to put RootSearch in either
>>> $UserBaseDirectory<>"\\AddOns\\Enhancements" or
>>> $UserBaseDirectory<>"\\Applications\\Enhancements".
>>>
>>> The introduction to the package says as much.
>>>
>>> Regards,
>>>
>>> Dave
>>>
>>>
>>>
>>


  • Prev by Date: Re: Fourier Transfer and a game?!?!
  • Next by Date: Re: Newbie question
  • Previous by thread: Re: Re: Re: finding package in ExtraPackages`Enhancements`
  • Next by thread: Re: finding package in ExtraPackages`Enhancements`