[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation
Nick Coghlan
report at bugs.python.org
Tue Nov 29 11:48:09 CET 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
I realised "-P" is available for use as the short form of the "suppress sys.path[0] initialisation" option.
So "-p" would override the calculation of sys.path[0], while "-P" would switch it off completely (similar to the way "-S" and "-E" switch off other aspects of the normal initialisation process).
Whether or not to provide "--path0" and "--nopath0" as long form alternatives would then be a separate question.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13475>
_______________________________________
More information about the Python-bugs-list
mailing list