Skip to content

Commit

Permalink
fix __init__()
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 19, 2024
1 parent 9633a93 commit debbba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/KiteControllers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const FTOL = 1e-8 # tolerance of residual for nonlinar solver
end

function __init__()
set_data_path(joinpath(pwd(), "data"))
if isdir(joinpath(pwd(), "data")) && isfile(joinpath(pwd(), "data", "system.yaml"))
set_data_path(joinpath(pwd(), "data"))
end
end

include("utils.jl")
Expand Down

0 comments on commit debbba4

Please sign in to comment.