0
0
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:
Bram Moolenaar
2013-06-10 21:27:29 +02:00
parent f9c9b32bd1
commit c09a6d6c0c
10 changed files with 627 additions and 32 deletions

View File

@@ -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

View File

@@ -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