[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 02:36:47 PST 2011
https://bugzilla.gnome.org/show_bug.cgi?id=625211
GStreamer | gst-python | unspecified
--- Comment #4 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> 2011-01-14 10:36:43 UTC ---
The try block catches this:
Traceback (most recent call last):
File "/home/v/lib/python2.6/site-packages/gst-0.10/gst/__init__.py", line
198, in <module>
local_argv = sys.argv
AttributeError: 'module' object has no attribute 'argv'
This exception happens on the inner run of this block (which, to be honest, I
have no idea why it is being recursively called).
I'm attaching a patch with the other suggestions, thanks for them, as I only
dabble in Python so I have a very C like style. My understanding though was
that setting local_argv to None would garbage collect it. Isn't that correct ?
--
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