Remove sys.path manipulations.
They were only needed for < 7.4 Vims which are no longer supported.
This commit is contained in:
parent
5f75dde205
commit
b13015d47a
@ -37,14 +37,8 @@ function! UltiSnips#bootstrap#Bootstrap()
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Expand our path
|
" Import vim as we expect it to be imported in many places.
|
||||||
exec g:_uspy "import vim, os, sys"
|
exec g:_uspy "import vim"
|
||||||
exec g:_uspy "sourced_file = vim.eval('s:SourcedFile')"
|
|
||||||
exec g:_uspy "while not os.path.exists(os.path.join(sourced_file, 'pythonx')):
|
|
||||||
\ sourced_file = os.path.dirname(sourced_file)"
|
|
||||||
exec g:_uspy "module_path = os.path.join(sourced_file, 'pythonx')"
|
|
||||||
exec g:_uspy "vim.command(\"let g:UltiSnipsPythonPath = '%s'\" % module_path)"
|
|
||||||
exec g:_uspy "if not hasattr(vim, 'VIM_SPECIAL_PATH'): sys.path.append(module_path)"
|
|
||||||
exec g:_uspy "from UltiSnips import UltiSnips_Manager"
|
exec g:_uspy "from UltiSnips import UltiSnips_Manager"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user