Skip to content

Commit

Permalink
Try to fix paths for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed Dec 23, 2024
1 parent 910af66 commit 1124eff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/speculation_benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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[]

Expand All @@ -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)
Expand All @@ -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
]))
Expand Down

0 comments on commit 1124eff

Please sign in to comment.