From d7822aede0d10acf1c7c4abde0d47d2e98150960 Mon Sep 17 00:00:00 2001 From: Iulia Dumitru <84318573+iuliadmtru@users.noreply.github.com> Date: Mon, 8 Aug 2022 20:36:27 +0300 Subject: [PATCH] Update src/example.jl Co-authored-by: Ayush Patnaik --- src/example.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/example.jl b/src/example.jl index 22fff80b..25d9828b 100644 --- a/src/example.jl +++ b/src/example.jl @@ -20,9 +20,7 @@ The API program has been discontinued at the end of 2018. Information is archive """ function load_data(name) name = name * ".csv" - path_len = length(pathof(Survey)) - termination_len = length("src/Survey.jl") - assets_path = pathof(Survey)[1:path_len - termination_len] * "assets" + assets_path = joinpath(PKG_DIR, "assets") @assert name ∈ readdir(assets_path) CSV.read(asset_path(name), DataFrame, missingstring="NA")