[New-bugs-announce] [issue40203] Warn about invalid PYTHONUSERBASE

Volker Weißmann report at bugs.python.org
Mon Apr 6 08:59:15 EDT 2020


New submission from Volker Weißmann <volker.weissmann at gmx.de>:

https://docs.python.org/2/using/cmdline.html says that PYTHONUSERBASE defines the user base directory. If I understand this correctly, this implies that PYTHONUSERBASE should be a path a directory. I therefore think that python should print a warning if PYTHONUSERBASE is:
1. Not a valid path (e.g. "invalid//path")
2. A path to something else than a directory
3. A non existing path (maybe)


I think that

export PYTHONUSERBASE="invalid//path"
python

should generate a warning, because there is no good reason to do so.

----------
messages: 365851
nosy: Volker Weißmann
priority: normal
severity: normal
status: open
title: Warn about invalid PYTHONUSERBASE
type: enhancement

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


More information about the New-bugs-announce mailing list