[issue33499] Environment variable to set alternate location for pycache tree

Barry A. Warsaw report at bugs.python.org
Wed May 16 18:19:54 EDT 2018


Barry A. Warsaw <barry at python.org> added the comment:

On May 15, 2018, at 22:58, Carl Meyer <report at bugs.python.org> wrote:

> Our use case includes a webserver process that embeds Python; I'm not sure if we could pass a CLI arg to it or not.

I think you pretty much have to have an environment variable, as there are just too many places where you’re going to invoke Python without the ability to set the command line.  We have precedence for having both a switch and environment variable, and I think that makes sense here.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33499>
_______________________________________


More information about the Python-bugs-list mailing list