Specify library version prior to import

- web activities caused two warnings every time they were started,

- warnings cost disk write wait time.
This commit is contained in:
James Cameron 2017-05-19 14:22:23 +10:00
parent d557234d8e
commit 2c3d1d0707

View File

@ -19,6 +19,10 @@ import json
import os import os
import logging import logging
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('WebKit2', '4.0')
from gi.repository import Gdk from gi.repository import Gdk
from gi.repository import Gio from gi.repository import Gio
from gi.repository import WebKit2 from gi.repository import WebKit2