Skip to content

Commit

Permalink
Address fb 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Oct 20, 2023
1 parent d7e7821 commit d6037cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ fn main() {
#[cfg(target_os = "windows")]
{
if !std::path::Path::new("worker/out/msys/bin/make.exe").exists() {
let python = if env::var("PYTHON").is_ok() {
env::var("PYTHON").unwrap()
let python = if let Ok(python) = env::var("PYTHON") {
python
} else if Command::new("where")
.arg("python3")
.status()
Expand Down

0 comments on commit d6037cb

Please sign in to comment.