Re: Suppressing Python wanings globally

2008-10-02 Thread Paul Moore
2008/10/2 Jean-Paul Calderone <[EMAIL PROTECTED]>: > On Thu, 2 Oct 2008 23:39:29 +0100, Paul Moore <[EMAIL PROTECTED]> wrote: >> >> How can I suppress a Python warning globally (i.e., for all instances >> of Python I run)? I have a test suite that runs Python via >> sys.executable, so the -W flag w

Re: Suppressing Python wanings globally

2008-10-02 Thread Jean-Paul Calderone
On Thu, 2 Oct 2008 23:39:29 +0100, Paul Moore <[EMAIL PROTECTED]> wrote: How can I suppress a Python warning globally (i.e., for all instances of Python I run)? I have a test suite that runs Python via sys.executable, so the -W flag won't work. A wrapper script doesn't work, as sys.executable doe

Suppressing Python wanings globally

2008-10-02 Thread Paul Moore
How can I suppress a Python warning globally (i.e., for all instances of Python I run)? I have a test suite that runs Python via sys.executable, so the -W flag won't work. A wrapper script doesn't work, as sys.executable doesn't point to that. And PYTHONSTARTUP is only for interactive use, so that'