When i try to load packages on this computer, i get an error (i already know the packages work). I think the issue might be to do with the fact that mathematica can't process the network drives, some of which are default search paths.

Can the default paths in $Path be edited?

  • $\begingroup$ Yes it can. Simply use AppendTo[$Path, "yourpath/here"] although I don't whether all network drives are accessible. $\endgroup$ – halirutan Jan 26 '15 at 3:17
  • $\begingroup$ Sorry i didn't explain properly, i wanted to remove the network drives. I fixed the problem another way though, running in admin mode forced the default paths to be local ones. $\endgroup$ – Nicholas Gaffney-Henderson Jan 28 '15 at 21:32
  • 1
    $\begingroup$ How about writing up your own answer? So that others that may have the same problem find help. $\endgroup$ – halirutan Jan 29 '15 at 14:04
  • $\begingroup$ $Path appears to be mutable: $Path = {"C:\\"} -- did editing its value fail to produce the effect you desire? Could you explain further, please? $\endgroup$ – Mr.Wizard Feb 2 '15 at 8:46
  • $\begingroup$ I did try this but i wasn't able to get it to work so i had assumed i wasn't supposed to be manually editing $Path, however its more likely i was doing the wrong thing. The issue i was having is that 3 of the default paths were network drives and i wanted to remove those directories from $Path. $\endgroup$ – Nicholas Gaffney-Henderson Feb 2 '15 at 23:00

In this case i solved the issue by running mathematica explicitly as an administrator, which changed the default $Path directories to all be local directories which mathematica could access.

I still don't know if the default $Path directories can be modified (removed) once mathematica has been opened.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.