Skip to content

Commit

Permalink
Update __init__()
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 19, 2024
1 parent 851d08e commit 7a6f8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/KiteViewers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export clear_viewer, update_system, save_png, stop, set_status # functions
const KITE_SPRINGS = 8

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("viewer3D.jl")
Expand Down

0 comments on commit 7a6f8a0

Please sign in to comment.