File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ use pet_virtualenvwrapper::VirtualEnvWrapper;
23
23
use std:: path:: PathBuf ;
24
24
use std:: sync:: Arc ;
25
25
26
+ use crate :: resolve;
27
+
26
28
pub fn create_locators ( conda_locator : Arc < Conda > ) -> Arc < Vec < Arc < dyn Locator > > > {
27
29
// NOTE: The order of the items matter.
28
30
let environment = EnvironmentApi :: new ( ) ;
@@ -119,7 +121,16 @@ pub fn identify_python_environment_using_locators(
119
121
let mut fallback_category = None ;
120
122
121
123
// If one of the symlinks are in the PATH variable, then we can treat this as a GlobalPath category.
122
- for symlink in resolved_env. symlink . clone ( ) . unwrap_or_default ( ) . into_iter ( ) {
124
+ println ! (
125
+ "DETERMINE CATEGORY for {:?} with {:?}" ,
126
+ resolved_env, global_env_search_paths
127
+ ) ;
128
+ let symlinks = [
129
+ resolved_env. symlink . clone ( ) . unwrap_or_default ( ) ,
130
+ vec ! [ resolved_env. executable. clone( ) , executable. clone( ) ] ,
131
+ ]
132
+ . concat ( ) ;
133
+ for symlink in symlinks {
123
134
if let Some ( bin) = symlink. parent ( ) {
124
135
if global_env_search_paths. contains ( & bin. to_path_buf ( ) ) {
125
136
fallback_category = Some ( PythonEnvironmentCategory :: GlobalPaths ) ;
You can’t perform that action at this time.
0 commit comments