Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Malt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ mutable struct Worker <: AbstractWorker

stdout::Pipe
stderr::Pipe
function Worker(; env=String[], exeflags=[])
function Worker(; env=String[], exename=exe=Base.julia_cmd()[1], exeflags=[])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vchuravy what does this syntax do? exename=exe=Base.julia_cmd()[1]

Is it on purpose or is it a typo?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an accident, it just assigns a global variable called env. Can you commit a fix to main?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there you go! fb35e44

# Spawn process
cmd = _get_worker_cmd(; env, exeflags)
cmd = _get_worker_cmd(exename; env, exeflags)
_stdout = Pipe()
_stderr = Pipe()
proc = run(
Expand Down
Loading