I create Mathematica application. For example testPrj. Now I want load this application for test. Here is a problem: how can I setup environment for loading my application with simple <<testPrj?

First what I try is to add to a $Path path of my application. But it should be done every time after loading Mathematica (any notebook).

PS: My application has a custom way and it is better not to change

  • 2
    $\begingroup$ You can use init.m to change the path in Mathematica automatically when Mathematica starts up. $\endgroup$ – C. E. Aug 6 '14 at 10:16
  • $\begingroup$ @Pickett where I can find that file? $\endgroup$ – molekyla777 Aug 6 '14 at 10:32
  • $\begingroup$ @molekyla777 Check out the link I gave you! "Possible locations of init.m include the following...." $\endgroup$ – C. E. Aug 6 '14 at 10:34

In order to do something at startup, like adding a path so that Mathematica can find certain files, you need to use init.m.

| improve this answer | |

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