Commits

Christopher Peplin committed 33bb0f1

Dynamically determine bundle's path.

  • Participants
  • Parent commits 15db3db

Comments (0)

Files changed (1)

File plugin/ropevim.vim

-function! LoadRope()
+function! LoadRope(current_path)
 python << EOF
 import sys
 import os
-module_path = os.path.expanduser("~/.vim/bundle/ropevim-pathogen/plugin")
-sys.path.append(".")
-sys.path.append(module_path)
+import vim
+sys.path.append(os.path.dirname(vim.eval("a:current_path")))
 import ropevim
 EOF
 endfunction
 
-call LoadRope()
+let current_path = expand("<sfile>")
+call LoadRope(current_path)