On Jun 2, 2013 9:54 PM, "Bram Moolenaar" <[email protected]> wrote:
>
>
> I have included patch 7.3.1099, which handles os.chdir() and
> os.fchdir().
>
> There was an earlier patch from Xavier de Gaye on May 17.
> Is there anything in that patch not covered by 7.3.1099?
>
> At least here was discussion about adding something to Python's path, so
> that "import something" would find something.py in a Vim runtime
> directory.  I lost track of what the consensus was for that.
>
> I think it would be good if plugin writers using Python can simply
> import a Python module, without having to worry about where it is
> located exactly.  This encourages sharing these modules between plugins.
>
> We could have a specific "python" and/or "python3" directory somewhere
> in the Vim runtime tree (also below ~/.vim).  Or just use one of the
> existing directories, such as "autoload".

The last proposal was using '_vim_runtimepath_' special item in sys.path
alongside with import hooks. I can hardly call this a consensus because
last my argument about why vim should use this magic was not replied to by
anybody.

I do not remember whether it was discussed earlier, but for python/
directories here is a proposal: python/ or pythonx/ is searched for modules
in both pythons, python2/ (or python/) and python3/ are searched only for
specific python versions. (pythonx/ appeared only after a patch from @Marc
Weber; second alternative (pythonx/ and python/) should be used in case
idea from this patch is considered good.)

> --
> hundred-and-one symptoms of being an internet addict:
> 50. The last girl you picked up was only a jpeg.
>
>  /// 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.
>
>

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