|
From: | Moritz Borgmann |
Subject: | Re: Superfluous warning "load: file found in load path"? |
Date: | Fri, 28 Mar 2008 03:28:22 +0100 |
| what is the purpose of this warning on line 482 of src/load-save.cc? | | warning_with_id ("Octave:load-file-in-path", | "load: file found in load path"); I think it's a likely source of confusion to find data files along the load path since it is too easy to open the wrong file. Even if I thought it was a good idea to find data files in a path, I don't think the path for finding .m files should also be overloaded for finding data files.
yes, you're absolutely right. Mathworks thinks differently, though...
| Can we get rid of it? No. It's just a warning, and you can disable it using the warning ID. Or, you can use full file names for the files you open.
ah, thanks for that hint! I didn't know you could switch warnings off selectively. Then that's a perfect solution. In this case, the problem is in 3rd-party code I can't/don't want to change, so using full file names (which is certainly the most sane method) wouldn't be an option. But now I simply switch off the warning and get a quiet console again.
Thanks, Moritz
[Prev in Thread] | Current Thread | [Next in Thread] |