Skip to content

Commit

Permalink
Fix python in msys2
Browse files Browse the repository at this point in the history
  • Loading branch information
moeshin committed Jan 6, 2022
1 parent c4a4466 commit 3e54260
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ let s:VERSION = '9.0.1'
" First try install wakatime-cli in background, then using Vim's Python
if !empty(python_bin)
let install_script = s:plugin_root_folder . '/scripts/install_cli.py'
if s:IsWindows() && s:Chomp(system([python_bin, '-VV']) !~ 'MSC')
" MSYS2
let install_script = '/' . substitute(install_script, ':', '/', '')
endif
let cmd = [python_bin, '-W', 'ignore', install_script, s:home]
if s:has_async
if s:IsWindows() && &shell =~ 'cmd'
Expand Down

0 comments on commit 3e54260

Please sign in to comment.