Bugfix VimPdb.vim

git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@161 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
stefan 2008-06-13 14:36:56 +00:00
parent 68bf3d9f5d
commit 6e5c7e8cbf

View File

@ -14,15 +14,15 @@
" Initialization code
"
"
if !has('python')
try
let current_dir = expand("<sfile>:h")
python import sys
exe 'python sys.path.insert(0, r"' . current_dir . '")'
python import VimPdb
catch
map <buffer> <silent> <F5> :echoerr 'No python -> no debugger ...'<CR>
finish
endif
let current_dir = expand("<sfile>:h")
python import sys
exe 'python sys.path.insert(0, r"' . current_dir . '")'
python import VimPdb
endtry
function! PdbInitialize()