Skip to content

Commit

Permalink
Ensure same path is passed to configuration script
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 24, 2023
1 parent 765e42d commit e160159
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Configure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ function configure_workers(;
numprocs::Int,
addprocs_function::Function,
options::Options,
project_path,
file,
exeflags::Cmd,
verbosity,
example_dataset::Dataset,
Expand All @@ -323,9 +325,8 @@ function configure_workers(;
end

if we_created_procs
project_path = splitdir(Pkg.project().path)[1]
activate_env_on_workers(procs, project_path, options, verbosity)
import_module_on_workers(procs, @__FILE__, options, verbosity)
import_module_on_workers(procs, file, options, verbosity)
end
move_functions_to_workers(procs, options, example_dataset, verbosity)
if runtests
Expand Down
2 changes: 2 additions & 0 deletions src/SymbolicRegression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ function _equation_search(
numprocs,
addprocs_function,
options,
splitdir(Pkg.project().path)[1],
@__FILE__,
exeflags,
verbosity,
example_dataset,
Expand Down

0 comments on commit e160159

Please sign in to comment.