help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distribute "data files" with a package


From: Sergei Steshenko
Subject: Re: Distribute "data files" with a package
Date: Mon, 31 Mar 2014 07:11:24 -0700 (PDT)




----- Original Message -----
> From: Andreas Weber <address@hidden>
> To: Daniel Kraft <address@hidden>
> Cc: Octave User <address@hidden>
> Sent: Monday, March 31, 2014 3:22 PM
> Subject: Re: Distribute "data files" with a package
> 
> On 31.03.2014 13:41, Daniel Kraft wrote:
> 
>>  ... Is there a
>>  function that can be called from within an .m file and that returns the
>>  directory that contains the .m file?
> 
> help mfilename
> 
> I don't know if this is a good design choice but I think you can find
> your file with mfilename ("fullpath") and fileparts, fullfile...
> 
> -- Andy
> 
> 


Yep, 'mfilename; is a good solution.

I use it to 'source' other .m file and which current .m file depends, and I 
define directory structure, so I know where to look for the needed files.

Regards,
  Sergei.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]