On 24 Jul 2009, at 15:20, Thomas Weber wrote:

> I find
>       fopen('data/filename');
> simpler than
>       fopen('../data/filename');
>
> Okay, I admit it: a weak argument :)
>
>       Thomas

actually the location of the files will change once a package is  
installed,
all m-file functions will end up in

OCTAVE_HOME/<package name>-<version number>

i.e. there is no "inst" subdirectory any more...

so we would still have

fopen('data/filename');

or rather

fopen([fileparts (mfilename ("fullpath")) 'data/filename');

as usually the m-file would not be run from the same path where it is  
installed.
I don't how that would be done from a .oct file though...

c.

------------------------------------------------------------------------------
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to