[Python-ideas] Policy for altering sys.path

Chris Angelico rosuav at gmail.com
Wed May 6 17:11:16 CEST 2015


On Thu, May 7, 2015 at 12:05 AM, Thomas Güttler
<guettliml at thomas-guettler.de> wrote:
> We run a custom sub class of list in sys.path. We set it in sitecustomize.py
>
> This instance get replace by a common list in lines like this:
>
> sys.path = glob.glob(os.path.join(WHEEL_DIR, "*.whl")) + sys.path

Forgive the obtuse question, but wouldn't an __radd__ method resolve
this for you?

ChrisA


More information about the Python-ideas mailing list