MathGroup Archive 2008

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

Search the Archive

Re: problem accessing notebooks


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!
> 


  • Prev by Date: Exclusions
  • Next by Date: Re: Wolfram User Interface Research?
  • Previous by thread: Re: problem accessing notebooks
  • Next by thread: Re: problem accessing notebooks