Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Here is what is at the beginning of one of my packages. I have the same problem with any package in which i'm trying to get any another package.

 << parametersbaselinescenario.m;
 << incomeinitialvalues.m;
 << wealthinitialvalues.m;

Here is what i get when trying to test my functions. I have problems with the evaluations (not always giving the correct answers), I guess there is a possibility that it is as a result of this particular issue.

Get::noopen: Cannot open parametersbaselinescenario.m. >>
Get::noopen: Cannot open incomeinitialvalues.m. >>
Get::noopen: Cannot open wealthinitialvalues.m. >>

Thanks a lot for your help.

share|improve this question

closed as too localized by Yves Klett, Leonid Shifrin, Artes, rcollyer, Ajasja May 10 '13 at 13:30

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Please read the documentation for Get. You need quotes to start with. –  b.gatessucks May 10 '13 at 10:46
    
Check the path to these packages -- if they are not in the Mathematica search path, they can't be opened. You can fix this using full path names. –  bill s May 10 '13 at 10:47
    
Thanks that resolved this particular problem ;) I thought Mathematica was automatically searching in the same directory. –  lio May 10 '13 at 10:55

1 Answer 1

Mathematica does not automatically search the directory containing the current notebook. You can verify this with $Path.

As noted by bill s in comments, you can specify full paths to the files (in quotes). Alternatively, you can use the following:

SetDirectory[NotebookDirectory[]]
share|improve this answer

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