Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed May 7, 2024
1 parent 95349d4 commit 7174239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions native_locator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ fn main() {

// Finds Windows Store, Known Path, and Registry pythons
#[cfg(windows)]
windows_python::find_and_report(&mut dispatcher, &known_paths);
windows_python::find_and_report(&mut dispatcher, &environment);

println!("Hello");
pyenv::find_and_report(&mut dispatcher, &environment);
println!("Hello2");

match now.elapsed() {
Ok(elapsed) => {
Expand Down
3 changes: 1 addition & 2 deletions native_locator/src/pyenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn get_home_pyenv_dir(environment: &impl known::Environment) -> Option<String> {

fn get_binary_from_known_paths(environment: &impl known::Environment) -> Option<String> {
for known_path in environment.get_know_global_search_locations() {
let bin = known_path.join("python");
let bin = known_path.join("pyenv");
if bin.exists() {
return bin.into_os_string().into_string().ok();
}
Expand Down Expand Up @@ -73,7 +73,6 @@ pub fn find_and_report(
let pyenv_dir = get_pyenv_dir(environment)?;

if let Some(pyenv_binary) = get_pyenv_binary(environment) {
println!("Found pyenv binary: {}", pyenv_binary);
let params = messaging::EnvManager::new(vec![pyenv_binary], None);
let message = messaging::EnvManagerMessage::new(params);
dispatcher.send_message(message);
Expand Down

0 comments on commit 7174239

Please sign in to comment.