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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jan 14 06:00:41 PST 2011


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

Vincent Penquerc'h <vincent.penquerch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #178218|0                           |1
        is obsolete|                            |
 Attachment #178306|0                           |1
        is obsolete|                            |

--- Comment #6 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> 2011-01-14 14:00:38 UTC ---
Created an attachment (id=178319)
 View: https://bugzilla.gnome.org/attachment.cgi?id=178319
 Review: https://bugzilla.gnome.org/review?bug=625211&attachment=178319

gst-python: do not hijack --help, -h, --version

We want gstreamer to not hijack some options, as it will exit if it finds them,
namely --help, -h, and --version. We take them out of sys.argv, and will be
restoring them afterwards so the calling program sees them as supplied.

Remove the last assignment to None, which is now unneeded due to the del
statement above, pointed out by philn-tp

-- 
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