diff --git a/src/KiteViewers.jl b/src/KiteViewers.jl index 6834cd8..87729df 100644 --- a/src/KiteViewers.jl +++ b/src/KiteViewers.jl @@ -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")