add support for windows 64bit os

This commit is contained in:
Alan Hamlett 2014-05-28 23:14:25 -07:00
parent 193e009c56
commit 5d7956a6f3

View file

@ -74,7 +74,7 @@ let s:VERSION = '2.0.2'
endif
if targetFile != ''
let python_bin = 'python'
if has('win32')
if has('win32') || has('win64')
let python_bin = 'pythonw'
endif
let cmd = [python_bin, '-W', 'ignore', s:plugin_directory . 'packages/wakatime/wakatime-cli.py']
@ -84,7 +84,7 @@ let s:VERSION = '2.0.2'
let cmd = cmd + ['--write']
endif
"let cmd = cmd + ['--verbose']
if has('win32')
if has('win32') || has('win64')
exec 'silent !start /min cmd /c "' . join(cmd, ' ') . '"'
else
exec 'silent !' . join(cmd, ' ') . ' &'