0
$\begingroup$

Is there any reason to set $UserBaseDirectory to be anything other than the default?

On my mac its set as ~/Library/Mathematica. It's been suggested that I should change this, and then add my own package directory to ~/Library/Mathematica/Applications for my own written packages, but I cannot for the life of my figure out how to permanently set environment variables on OSX 10.8.

Additionally, I don't understand how why simply adding the path to my package directories hosted elsewhere to $Path via ~/Library/Mathematica/Kernel/init.m would be wrong for my own written packages?

$\endgroup$
3
  • 2
    $\begingroup$ I am inclined to say no (default $UserBaseDirectory is just fine) and yes (simply adding the package location to $Path should suffice). $\endgroup$
    – ilian
    Commented Jun 8, 2015 at 15:49
  • $\begingroup$ Great, I've spent many a hour trying how to set a permanent environment variable on osx to a new $UserBaseDirectory with no luck. $\endgroup$
    – tarhawk
    Commented Jun 10, 2015 at 12:50
  • $\begingroup$ Yes, with OS X it is a bit of a moving target... I've found this to be helpful. $\endgroup$
    – ilian
    Commented Jun 10, 2015 at 16:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.