File tree 1 file changed +1
-12
lines changed
spyder/plugins/ipythonconsole/utils
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 12
12
import logging
13
13
import os
14
14
import os .path as osp
15
- import sys
16
15
17
16
# Third party imports
18
17
from jupyter_client .kernelspec import KernelSpec
32
31
logger = logging .getLogger (__name__ )
33
32
34
33
35
- def is_different_interpreter (pyexec ):
36
- """Check that pyexec is a different interpreter from sys.executable."""
37
- executable_validation = osp .basename (pyexec ).startswith ('python' )
38
- directory_validation = osp .dirname (pyexec ) != osp .dirname (sys .executable )
39
- return directory_validation and executable_validation
40
-
41
-
42
34
def get_activation_script (quote = False ):
43
35
"""
44
36
Return path for bash/batch conda activation script to run spyder-kernels.
@@ -92,11 +84,8 @@ def argv(self):
92
84
self .set_conf ('default' , True , section = 'main_interpreter' )
93
85
self .set_conf ('custom' , False , section = 'main_interpreter' )
94
86
95
- # Part of spyder-ide/spyder#11819
96
- is_different = is_different_interpreter (pyexec )
97
-
98
87
# Command used to start kernels
99
- if is_different and is_conda_env (pyexec = pyexec ):
88
+ if is_conda_env (pyexec = pyexec ):
100
89
# If this is a conda environment we need to call an intermediate
101
90
# activation script to correctly activate the spyder-kernel
102
91
You can’t perform that action at this time.
0 commit comments