Thanks a lot! Something I was looking for. Though it might be useful to
have some dedicated command don't you think?
On Friday, 20 June 2014 10:48:37 UTC+2, Kevin Squire wrote:
>
> julia> Pkg.dir("JSON")
> "/home/kevin/.julia/v0.3/JSON"
>
> julia> joinpath(Pkg.dir("JSON"),"src","JSON.jl")
> "/home/kevin/.julia/v0.3/JSON/src/JSON.jl"
>
> Not the prettiest, but not too bad, I think?
>
> Cheers,
> Kevin
>
>
> On Fri, Jun 20, 2014 at 12:47 AM, Tomas Krehlik <[email protected]
> <javascript:>> wrote:
>
>> Is there a way how to dynamically reference a file within given package?
>> My problem is that I want to include some sample data and then reference
>> them by some simple command. I was thinking that there might be something
>> like
>>
>> packageData("nameOfPackage","filename")
>>
>> which would return the path to the file within data folder in some
>> package. This value could then be wrapped within readcsv or something like
>> that.
>>
>>
>