[issue22543] -W option cannot use non-standard categories

Gerrit Holl report at bugs.python.org
Thu Nov 29 11:16:45 EST 2018


Gerrit Holl <gerrit.holl at gmail.com> added the comment:

There is a thread on StackOverflow related to this problem:

https://stackoverflow.com/q/42495641/974555

The (currently only and accepted) answer proposes as a workaround to set the PYTHONPATH variable, as the contents of those apparently *are* already in sys.path at the time warnings._processoptions is called, unlike site-packages.  So manually adding site-packages to the PYTHONPATH variable does circumvent this problem (tested in Python 3.7.1).

----------
nosy: +Gerrit.Holl
versions: +Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list