Permalink
Browse files

fix debugger python path to be relative

  • Loading branch information...
1 parent 8a982f8 commit 61e71b21f0eb81b364a5fd55080b55a19efd19dc @matzko committed Nov 28, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 bundle/vim-debugger/plugin/debugger.vim
@@ -123,6 +123,8 @@ if filereadable($VIMRUNTIME."/plugin/debugger.py")
pyfile $VIMRUNTIME/plugin/debugger.py
elseif filereadable($HOME."/.vim/plugin/debugger.py")
pyfile $HOME/.vim/plugin/debugger.py
+elseif filereadable( fnamemodify(expand("<sfile>"), ":h") . "/debugger.py" )
+ execute "pyfile " . fnamemodify(expand("<sfile>"), ":h") . "/debugger.py"
else
call confirm('debugger.vim: Unable to find debugger.py. Place it in either your home vim directory or in the Vim runtime directory.', 'OK')
endif

0 comments on commit 61e71b2

Please sign in to comment.