Skip to main content
added 19 characters in body; edited tags
Source Link
Kuba
  • 137.7k
  • 13
  • 289
  • 751

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

On my mac its set as ~/Library/Mathematica~/Library/Mathematica. It's been suggested that I should change this, and then add my own package directory to ~/Library/Mathematica/Applications~/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 osxOSX 10.8. 

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

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?

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?

Source Link
tarhawk
  • 769
  • 5
  • 15

Setting UserBaseDirectory for custom packages

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?