[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

Éric Araujo report at bugs.python.org
Sat Nov 26 13:50:02 CET 2011


Éric Araujo <merwok at netwok.org> added the comment:

Eric: Actually I posted my comments after reading only Nick’s message, not yours, so no worry :)

Nick:
> the "just do the right thing" aspect is covered by PEP 395.
This is great.  Thanks for clarifying.

> This is an orthogonal proposal that allows power users the ability to override the
> automatic initialisation to handle those cases where it goes wrong.
If I’m understanding correctly, #12934 is one of those issues.  I agree that an option would be better than nothing, but 1) it would not help with older Pythons 2) it would not help naïve users 3) it would complicate the command-line interface of Python.  (Not saying I’m against the idea, just listing cons.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13475>
_______________________________________


More information about the Python-bugs-list mailing list