Marc Weber wrote:

> Yet another suggestion - what about adding &rtp to sys.path somehow ?
> (with or without python version site-packages or the like)
> 
> Then you could
> - write .py files
> - use them from python by
> 
>     import module
>     do_stuff()
> 
> Yes - it can be trivially implemented in tools like vim-addon-manager,
> but I'd prefer a global solution usable by everyone.

Yes, this also came up as a side effect of the os.chdir() solution.

It's especially useful if a plugin can be distributed as a Python module
plus some lines in the Vim plugin.  It would have a similar effect as
using a Vim script under autoload.

-- 
A M00se once bit my sister ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui