From 765e3175e17181e2556ba27d3e82b0ce6318d74a Mon Sep 17 00:00:00 2001 From: konsti Date: Mon, 22 Jan 2024 14:11:20 +0100 Subject: [PATCH] Make windows compile (#1035) Minimal changes to make `cargo check`/`cargo run` work to unblock the remaining PR stacking --- crates/puffin-interpreter/src/interpreter.rs | 4 ++-- crates/puffin-interpreter/src/virtual_env.rs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/puffin-interpreter/src/interpreter.rs b/crates/puffin-interpreter/src/interpreter.rs index 5aeb0aa29..7030a7507 100644 --- a/crates/puffin-interpreter/src/interpreter.rs +++ b/crates/puffin-interpreter/src/interpreter.rs @@ -127,8 +127,8 @@ impl Interpreter { #[cfg(windows)] { - if let Some(python_version) = python_version { - compile_error!("Implement me") + if let Some(_python_version) = python_version { + unimplemented!("Implement me") } let executable = which::which("python.exe") diff --git a/crates/puffin-interpreter/src/virtual_env.rs b/crates/puffin-interpreter/src/virtual_env.rs index aeebba0ce..1acf03255 100644 --- a/crates/puffin-interpreter/src/virtual_env.rs +++ b/crates/puffin-interpreter/src/virtual_env.rs @@ -51,10 +51,7 @@ impl Virtualenv { } #[cfg(windows)] { - self.0 - .join("Scripts") - .join("python.exe") - .into_std_path_buf() + self.root.join("Scripts").join("python.exe") } #[cfg(not(any(unix, windows)))] {