Commit cc3ea773 authored by Tomeu Vizoso's avatar Tomeu Vizoso

Make sure that sys.argv is a list and not a sequence.

Because Python's optparse will try to do things on it that can
only be done with list.
parent 3d72b824
...@@ -343,6 +343,6 @@ __all__.append('TextBuffer') ...@@ -343,6 +343,6 @@ __all__.append('TextBuffer')
import sys import sys
initialized, argv = Gtk.init_check(sys.argv) initialized, argv = Gtk.init_check(sys.argv)
sys.argv = argv sys.argv = list(argv)
if not initialized: if not initialized:
raise RuntimeError("Gtk couldn't be initialized") raise RuntimeError("Gtk couldn't be initialized")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment