Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to specify julia path #39

Open
NilsWildt opened this issue Apr 12, 2024 · 1 comment
Open

Add option to specify julia path #39

NilsWildt opened this issue Apr 12, 2024 · 1 comment

Comments

@NilsWildt
Copy link

Hi, It seems that on my Windows system, I'm having a hard time to specify the PATH -- such that it would find the correct julia executable (in _get_script). Would it be hard to add a kwarg option with a julia executable path?

@MilesCranmer
Copy link
Owner

MilesCranmer commented Apr 12, 2024

Good point!

Even better would be if we could change this line:

run(`julia --project="$tmp_env" --startup-file=no $exeflags "$runner_filename"`)

to use the code used in Pkg.test() which is like:

https://github.com/JuliaLang/julia/blob/147bdf428cd14c979202678127d1618e425912d6/base/util.jl#L677-L680

run(`$(julia_cmd()) $(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "test", "runtests.jl")) $tests`, ENV2))

i.e., it uses the julia_cmd() to get the right binary to call.

I'm also wondering if we should just use a Distributed.process instead. But it's interesting that Pkg.test() itself uses a regular run().

x-ref related #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants