In similar situations, I usually include something like
project_path(parts...) = normpath(joinpath(@__DIR__, "..", parts...))
in the main module file (eg src/Foo.jl
). Then in the REPL I can do
using Foo
include(project_path("setpaths.jl"))
etc.