From 7a6f8a02edbc0a2b71bbe9b2a05e8127f3dc2b60 Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Tue, 19 Mar 2024 14:16:31 +0100 Subject: [PATCH] Update __init__() --- src/KiteViewers.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")