MathGroup Archive 2006

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

Search the Archive

Re: path for package


On 10/14/06 at 3:07 AM, odneTenakA at gmail.com (Akane Tendo) wrote:

>In which user directory should I put a package .m file to load the
>package? I already tried C:\Documents and
>Settings\Administrator\Local Settings\Application
>Data\Mathematica\Applications but then I load the package and it
>fails.

What do you mean by "load the package and it fails"? Fails to 
work as intended after being loaded? If so, there must be a 
problem with the package code.

Fails to load? If so, how are you attempting to load the 
package? Is the package in a directory along a path stored in 
$Path? If the problem is the path to your package is not in 
$Path, you could add the path to your package by doing

$Path=Append[$Path,"path to package"];

That is you can put packages where ever you like and they should work.

I find it best to keep packages together in one place. My 
preferred location is the directory returned by

$UserBaseDirectory
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: how to sum lists of unequal length?
  • Next by Date: Re: how to sum lists of unequal length?
  • Previous by thread: RE: path for package
  • Next by thread: RE: path for package