Skip to content

Commit 6ceacc3

Browse files
committed
Properly check if python3 is available.
This fixes #938 and also closes #939. I haven't accepted #939 just because of the order of the logical conditions (it makes more sense to check for python3 and then if it is executable). Thanks to @kartynnik for the issue and Pull Request. I'm also adding you as a contributor.
1 parent c0e9544 commit 6ceacc3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ Contributors:
7070
* Wang Feng (https://github.com/mapler);
7171
* Wayne Ye (https://github.com/WayneYe);
7272
* Wes Turner (https://github.com/westurner);
73+
* Yury A. Kartynnik (https://github.com/kartynnik);
7374
* Xiangyu Xu (https://github.com/bkbncn);

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ filetype plugin on
1919
" OPTIONS: {{{
2020

2121
" Vim Python interpreter. Set to 'disable' for remove python features.
22-
if executable('python3')
22+
if has("python3") && executable('python3')
2323
call pymode#default('g:pymode_python', 'python3')
2424
else
2525
call pymode#default('g:pymode_python', 'python')

0 commit comments

Comments
 (0)