From 6e5c7e8cbf031b5b31bf402d0db92799292bdacc Mon Sep 17 00:00:00 2001 From: stefan Date: Fri, 13 Jun 2008 14:36:56 +0000 Subject: [PATCH] Bugfix VimPdb.vim git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@161 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69 --- vimfiles/plugin/VimPdb.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vimfiles/plugin/VimPdb.vim b/vimfiles/plugin/VimPdb.vim index e7ca786..d397ee5 100644 --- a/vimfiles/plugin/VimPdb.vim +++ b/vimfiles/plugin/VimPdb.vim @@ -14,15 +14,15 @@ " Initialization code " " -if !has('python') +try + let current_dir = expand(":h") + python import sys + exe 'python sys.path.insert(0, r"' . current_dir . '")' + python import VimPdb +catch map :echoerr 'No python -> no debugger ...' finish -endif - -let current_dir = expand(":h") -python import sys -exe 'python sys.path.insert(0, r"' . current_dir . '")' -python import VimPdb +endtry function! PdbInitialize()