diff --git a/src/Tulip.jl b/src/Tulip.jl index e077c788..de35dccc 100644 --- a/src/Tulip.jl +++ b/src/Tulip.jl @@ -8,15 +8,9 @@ using TOML using TimerOutputs -const _TULIP_VERSION = Ref{VersionNumber}() - -function __init__() - # Read Tulip version from Project.toml file - tlp_ver = VersionNumber(TOML.parsefile(joinpath(@__DIR__, "..", "Project.toml"))["version"]) - _TULIP_VERSION[] = tlp_ver -end - -version() = _TULIP_VERSION[] +# Read Tulip version from Project.toml file +const TULIP_VERSION = VersionNumber(TOML.parsefile(joinpath(@__DIR__, "..", "Project.toml"))["version"]) +version() = TULIP_VERSION include("utils.jl")