Skip to content

Commit

Permalink
change how virtual env is set
Browse files Browse the repository at this point in the history
instead of setting the `prefix` setting we set the `home` setting which propagates to `prefix`
  • Loading branch information
brownben committed Nov 28, 2024
1 parent fe2405d commit 3f4999f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/interpreters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl MainInterpreter {

if let Ok(virtual_enviroment) = env::var("VIRTUAL_ENV") {
virtual_enviroment_path = WideCString::from_str(&virtual_enviroment).unwrap();
config.assume_init_mut().prefix = virtual_enviroment_path.as_mut_ptr().cast();
config.assume_init_mut().home = virtual_enviroment_path.as_mut_ptr().cast();
}

ffi::Py_InitializeFromConfig(ptr::from_mut(config.assume_init_mut()));
Expand Down

0 comments on commit 3f4999f

Please sign in to comment.