[Python-ideas] Policy for altering sys.path

Robert Collins robertc at robertcollins.net
Thu May 7 08:54:02 CEST 2015


On 7 May 2015 at 18:00, Thomas Güttler <guettliml at thomas-guettler.de> wrote:
> Am 06.05.2015 um 17:07 schrieb Paul Moore:

> pip is a special case, since the pip authors say "we don't provide an API".
> But they have handy methods which we want to use. We use "import pip"
> and the class of sys.path of our application gets altered.

Submit a PR to move the sys.path changes into something triggered by
the CLI entrypoint rather than an import side effect. I see no
in-principle issue with that.

-Rob


-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud


More information about the Python-ideas mailing list