[Python-ideas] PYTHONUSERBASES (plural!)

Ben Finney ben+python at benfinney.id.au
Wed Apr 22 03:11:03 CEST 2009


Larry Hastings <larry at hastings.org> writes:

> I was excited to see PYTHONUSERBASE added in 2.6/3.0. But I became
> disappointed when I learned it only allows you to specify one
> directory. I have use cases where I'd want more than one.
[…]

> I therefore propose a new environment variable called PYTHONUSERBASES.
> PYTHONUSERBASES is a list of directories separated by whatever
> directory separator characters PYTHONPATH permits on the local
> platform.
[…]

I like the described feature.

Adding a new variable whose meaning entirely obsoletes the existing one
with confusingly similar names, especially since the existing one is
itself so new, seems sub-optimal.

Instead of adding another variable, I would prefer the meaning of the
existing ‘PYTHONUSERBASE’ altered to do this.

-- 
 \     “I know you believe you understood what you think I said, but I |
  `\         am not sure you realize that what you heard is not what I |
_o__)                                     meant.” —Robert J. McCloskey |
Ben Finney




More information about the Python-ideas mailing list