[Python-ideas] problems with import
Steven D'Aprano
steve at pearwood.info
Fri Jun 27 19:12:15 CEST 2014
On Fri, Jun 27, 2014 at 09:05:48AM -0400, Neal Becker wrote:
[...]
> Now I also have
> ~/.local/lib/python2.7/site-packages/hgext
>
> but python won't search there for extensions. Once if finds the system hgext
> directory, it won't look also in the local one.
Re-arrange sys.path so that the local site-packages comes first,
before the global site-packages. (I'm surprised Python doesn't
already do this.)
--
Steven
More information about the Python-ideas
mailing list