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
1 changed files with 2 additions and 2 deletions

View File

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