mirror of
https://github.com/vim/vim.git
synced 2025-11-13 22:54:27 -05:00
updated for version 7.3.1163
Problem: Not easy to load Python modules.
Solution: Search "python2", "python3" and "pythonx" directories in
'runtimepath' for Python modules. (ZyX)
This commit is contained in:
@@ -1069,6 +1069,14 @@ ee('vim.current.tabpage = True')
|
||||
ee('vim.current.xxx = True')
|
||||
EOF
|
||||
:"
|
||||
:" Test import TODO: BROKEN
|
||||
:"py << EOF
|
||||
:"vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
|
||||
:"from module import dir as d
|
||||
:"from modulex import ddir
|
||||
:"cb.append(d + ',' + ddir)
|
||||
:"EOF
|
||||
:"
|
||||
:" Test exceptions
|
||||
:fun Exe(e)
|
||||
: execute a:e
|
||||
|
||||
@@ -1036,6 +1036,14 @@ ee('vim.current.tabpage = True')
|
||||
ee('vim.current.xxx = True')
|
||||
EOF
|
||||
:"
|
||||
:" Test import TODO: BROKEN
|
||||
:"py3 << EOF
|
||||
:"vim.options['rtp'] = os.getcwd().replace(',', '\\,').replace('\\', '\\\\')
|
||||
:"from module import dir as d
|
||||
:"from modulex import ddir
|
||||
:"cb.append(d + ',' + ddir)
|
||||
:"EOF
|
||||
:"
|
||||
:" Test exceptions
|
||||
:fun Exe(e)
|
||||
: execute a:e
|
||||
|
||||
Reference in New Issue
Block a user