MathGroup Archive 2008

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

Search the Archive

Re: problem accessing notebooks


Jens-Peer Kuska schrieb:
...
> what you do with SetDirectory[] is irrelevant for the package search.
...

This is not true for version 5.2.
I've put an empty package "pack.m" into my desktop-directory and another one
("pp.m") in a subdirectory named "sub":

In[1]:=
$Version
Out[1]=
5.2 for Linux x86 (64 bit) (June 20, 2005)
In[2]:=
!!"~/Desktop/pack.m"
>From In[2]:=
BeginPackage["pack`",{"sub`pp`"}];
EndPackage[];
In[3]:=
!!"~/Desktop/sub/pp.m"
>From In[3]:=
BeginPackage["sub`pp`"];
Print["Verzeichnis gefunden!"];
EndPackage[];
In[4]:=
<<"~/Desktop/pack.m"
>From In[4]:=
Get::noopen : Cannot open sub`pp`. More...
Needs::nocont : Context sub`pp` was not created when Needs was evaluated. More...
In[5]:=
SetDirectory["~/Desktop"];
In[6]:=
<<"pack`"
>From In[6]:=
Verzeichnis gefunden!


  • Prev by Date: Re: Mathematica Player Pro!
  • Next by Date: returning inverse Hessian from FindMinimum
  • Previous by thread: Re: problem accessing notebooks
  • Next by thread: Re: problem accessing notebooks