Skip to content

Commit

Permalink
fix issue #206: No module named leaderf
Browse files Browse the repository at this point in the history
  • Loading branch information
Yggdroot committed Aug 30, 2018
1 parent 910b4c8 commit 132f741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/leaderf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ else
endif

silent! exec g:Lf_py "pass"
exec g:Lf_py "import vim, sys, os.path"
exec g:Lf_py "import vim, sys, os, re, os.path"
exec g:Lf_py "cwd = vim.eval('expand(\"<sfile>:p:h\")')"
exec g:Lf_py "cwd = re.sub(r'(?<=^.)', ':', os.sep.join(cwd.split('/')[1:])) if os.name == 'nt' and cwd.startswith('/') else cwd"
exec g:Lf_py "sys.path.insert(0, os.path.join(cwd, 'leaderf', 'python'))"

function! s:InitVar(var, value)
Expand Down

0 comments on commit 132f741

Please sign in to comment.