diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-09-14 08:55:36 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-09-14 08:55:36 -0400 |
commit | 6bcbb18dc88d9b84f71c09450af10f8f537a8a68 (patch) | |
tree | 6d17d1071682c549941231f020e1de0f331c83e7 | |
parent | 5c82ea8f9f9f3ef043d4f206ded223a89a3bd360 (diff) | |
parent | c478dd5ab472a643488cb6b14e299ee46d83701c (diff) | |
download | rneovim-6bcbb18dc88d9b84f71c09450af10f8f537a8a68.tar.gz rneovim-6bcbb18dc88d9b84f71c09450af10f8f537a8a68.tar.bz2 rneovim-6bcbb18dc88d9b84f71c09450af10f8f537a8a68.zip |
Merge pull request #3331 from yagebu/python-no-cwd-import
python: remove current working directory from path
-rw-r--r-- | runtime/autoload/provider/pythonx.vim | 2 | ||||
-rw-r--r-- | runtime/autoload/remote/host.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim index df3264b7a2..5ca397ea4e 100644 --- a/runtime/autoload/provider/pythonx.vim +++ b/runtime/autoload/provider/pythonx.vim @@ -54,7 +54,7 @@ function! s:check_interpreter(prog, major_ver, skip) abort " Try to load neovim module, and output Python version. let prog_ver = system([ a:prog , '-c' , - \ 'import sys; sys.stdout.write(str(sys.version_info[0]) + '. + \ 'import sys; sys.path.remove(""); sys.stdout.write(str(sys.version_info[0]) + '. \ '"." + str(sys.version_info[1])); '. \ (a:major_ver == 2 \ ? 'import pkgutil; exit(pkgutil.get_loader("neovim") is None)' diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index 64f6ddb759..79dbb0ad0e 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -197,7 +197,7 @@ function! s:RequirePythonHost(host) let ver = (a:host.orig_name ==# 'python') ? 2 : 3 " Python host arguments - let args = ['-c', 'import neovim; neovim.start_host()'] + let args = ['-c', 'import sys; sys.path.remove(""); import neovim; neovim.start_host()'] " Collect registered Python plugins into args let python_plugins = remote#host#PluginsForHost(a:host.name) |