I have an internal package that I have developed. Now, I want to use that package in other files. I am doing:
include("Package.jl")
But even after that I am not able to use the modalities of my package. I am only able to do that while I am working inside the package.
Please let me know, what can be done. Thank you.
You can run ]dev path_to_pkg
, then using pkg_name
. Then it will be visible to Julia’s package loader. The path is the one ending with the name of the package, before src
. I am assuming your package folder has the proper structure from the docs, e.g. src folder, main file, etc. Code Loading · The Julia Language
1 Like
Not sure if this is your issue, but what hit me between including modules with include
vs a package was the using
command:
# Actual package
using Foo
# Module with include
using .Foo