diff --git a/src/speculation_benchmarks.jl b/src/speculation_benchmarks.jl index 034682c..81567e6 100644 --- a/src/speculation_benchmarks.jl +++ b/src/speculation_benchmarks.jl @@ -50,6 +50,7 @@ struct SpeculationBenchmark _active_project = active_project() new_project_directory = mktempdir() new_project_path = joinpath(new_project_directory, "Project.toml") + package_path = dirname(@__DIR__) data_path, time_path = tempname(), tempname() times = Float64[] @@ -61,7 +62,7 @@ struct SpeculationBenchmark joinpath(new_project_directory, "Manifest.toml") ) activate(new_project_path) - develop(; path = dirname(@__DIR__)) + develop(; path = package_path) add(["Pkg", "Serialization"]) instantiate() activate(_active_project) @@ -73,7 +74,7 @@ struct SpeculationBenchmark "julia", "--project=$new_project_path", "--eval", - "include(\"$(dirname(dirname((@__FILE__))))/scripts/trials.jl\")", + "include($(repr(joinpath(package_path, "scripts", "trials.jl"))))", data_path, time_path ]))