How to find the path of a package in Julia?

后端 未结 3 1429
温柔的废话
温柔的废话 2021-01-23 01:59

I am trying to find the path to a specific package in Julia. I do not know exactly where it is and I want to use the appropriate path. Is there a function that does this in Juli

3条回答
  •  滥情空心
    2021-01-23 02:41

    Julia's standard library (Base) provides a find_package function which works as follows:

    julia> Base.find_package("Random")
    "/Applications/Julia-1.3.app/Contents/Resources/julia/share/julia/stdlib/v1.3/Random/src/Random.jl"
    
    julia> Base.find_package("JSON")
    "/Users/logankilpatrick/.julia/packages/JSON/d89fA/src/JSON.jl"
    

提交回复
热议问题