[Top][All Lists]

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

Re: Distribute "data files" with a package

From: Martin Helm
Subject: Re: Distribute "data files" with a package
Date: Mon, 31 Mar 2014 17:40:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Am 31.03.2014 17:31, schrieb Philip Nienhuis:
> loc = which ('<function>);
> and the answer is the full path to that function in your package. Just
> replace the last entry (the function file name) by <subdir>/<datafilename>
> and you're all set.
Something like

strjoin({fileparts(which("func_name")),"subdir","test.jpg"}, filesep)

will do it in a operating system independent way.

reply via email to

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