Skip to content

Commit

Permalink
fix(windows&python): Access is denied. (os error 5) (#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyranota authored Dec 23, 2024
1 parent 1d20dea commit 6bd2dc3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backend/windmill-worker/src/python_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,18 @@ pub async fn uv_pip_compile(
.args(&args)
.stdout(Stdio::piped())
.stderr(Stdio::piped());

#[cfg(windows)]
{
child_cmd
.env("SystemRoot", SYSTEM_ROOT.as_str())
.env("USERPROFILE", crate::USERPROFILE_ENV.as_str())
.env(
"TMP",
std::env::var("TMP").unwrap_or_else(|_| String::from("/tmp")),
);
}

let child_process = start_child_process(child_cmd, uv_cmd).await?;
append_logs(&job_id, &w_id, logs, db).await;
handle_child(
Expand Down

0 comments on commit 6bd2dc3

Please sign in to comment.