BUGFIX: Shell fails to execute cli.py if plugin_directory contains spaces

This commit is contained in:
Matt Carter 2015-05-21 10:21:16 +10:00
parent 5e8248b866
commit 06140ecd10
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ let s:VERSION = '4.0.0'
let python_bin = 'pythonw'
endif
endif
let cmd = [python_bin, '-W', 'ignore', s:plugin_directory . 'packages/wakatime/cli.py']
let cmd = [python_bin, '-W', 'ignore', '"' . s:plugin_directory . 'packages/wakatime/cli.py"']
let cmd = cmd + ['--file', shellescape(targetFile)]
let cmd = cmd + ['--plugin', shellescape(printf('vim/%d vim-wakatime/%s', v:version, s:VERSION))]
if a:is_write