You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-vim/python-mode/files/python-mode-0.6.18-dont-add...

16 lines
496 B

https://github.com/klen/python-mode/issues/162
--- a/ftplugin/python/init-pymode.vim
+++ b/ftplugin/python/init-pymode.vim
@@ -46,10 +46,9 @@ if !pymode#Default('g:pymode_path', 1) || g:pymode_path
python << EOF
import sys, vim, os
-curpath = vim.eval("getcwd()")
libpath = os.path.join(vim.eval("expand('<sfile>:p:h:h:h')"), 'pylibs')
-sys.path = [libpath, curpath] + vim.eval("g:pymode_paths") + sys.path
+sys.path = [libpath] + vim.eval("g:pymode_paths") + sys.path
EOF
endif " }}}