File tree 2 files changed +12
-7
lines changed
2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ Igor Duarte Cardoso
46
46
Ilya Kulakov
47
47
Ionel Maries Cristian
48
48
Itxaka Serrano
49
+ Jack Desert
49
50
Jake Windle
50
51
Jannis Leidel
51
52
Jesse Schwartzentruber
Original file line number Diff line number Diff line change 1
1
from __future__ import unicode_literals
2
+ import sys
2
3
3
4
import tox
4
5
8
9
9
10
@tox .hookimpl
10
11
def tox_get_python_executable (envconfig ):
12
+ """
13
+ Return path to specified interpreter.
14
+ If not available, exit(1).
15
+ """
11
16
spec , path = base_discover (envconfig )
12
- if path is not None :
17
+
18
+ if path is None :
19
+ print ('envname {} not found' .format (envconfig .envname ))
20
+ sys .exit (1 )
21
+ else :
13
22
return path
14
- # 3. check if the literal base python
15
- candidates = [envconfig .basepython ]
16
- # 4. check if the un-versioned name is good
17
- if spec .name is not None and spec .name != envconfig .basepython :
18
- candidates .append (spec .name )
19
- return check_with_path (candidates , spec )
23
+ ~
You can’t perform that action at this time.
0 commit comments