How to find the path of a package in Julia?

后端 未结 3 1427
温柔的废话
温柔的废话 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:44

    You can use pathof to find the location of an imported module (and package if the module was in a package)

    julia> using Random
    
    julia> pathof(Random)
    "C:\\Julia-1.4.1\\share\\julia\\stdlib\\v1.4\\Random\\src\\Random.jl"
    

提交回复
热议问题