Re: problem accessing notebooks

*To*: mathgroup at smc.vnet.net*Subject*: [mg87986] Re: problem accessing notebooks*From*: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>*Date*: Mon, 21 Apr 2008 06:51:03 -0400 (EDT)*Organization*: Uni Leipzig*References*: <fuc7ph$a04$1@smc.vnet.net> <fueev8$bfe$1@smc.vnet.net> <fuhfj9$itk$1@smc.vnet.net>*Reply-to*: kuska at informatik.uni-leipzig.de

Hi, and have you ever looked in your $Path ?? There is a "." listed and that is the reason why Mathematica found you package. So the value of $Path variable determines the package search and *not* the actual directory, except the actual directory is in the $Path. Regards Jens Peter Pein wrote: > 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! >