Aaron Griffin wrote:
On 1/17/07, Tom Whittock <[EMAIL PROTECTED]> wrote:
I would like to install an external python module (ctypes) into vim
+python, so I can use that modules functionality from my script, but
am unsure as to how to do that. Is this a reasonable thing to want to
do? Is it possible? There doesn't seem to be a python_path equivalent
that I can see...

vim +python runs a typical python session - anything that the python
REPL sees, vim +python will too.

FTR though, sys.path contains the paths python searches.

:python import sys
:python print sys.path

I suppose your plugin could be something like the following (I don't know python so I can't guarantee I didn't goof):

if !has("python")
        finish
endif
if exists("did_py_ctypes")
        finish
endif
let py_ctypes = 1
py import sys
...
pyfile ctypes.py
...



Best regards,
Tony.

Reply via email to