[gstreamer-bugs] [Bug 625211] import gst acts on --help or -h in sys.argv, preempting __main__

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 13 04:46:36 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=625211
  GStreamer | gst-python | unspecified

Vincent Penquerc'h <vincent.penquerch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent.penquerch at collabora
                   |                            |.co.uk

--- Comment #2 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> 2011-01-13 12:46:29 UTC ---
This was surprisingly annoying to get right, this code is called (at least)
twice recursively, the second time having a non existent argv in sys, hence the
monkeying around with exceptions.

Test program:
import sys
import pygst
pygst.require("0.10")
import gst

print "Hello, world"
for o in sys.argv:
  print "We see: " + o

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list