Specify library version prior to import, fixes #4900
Gi has been emitting warnings into the log to do this for some time now. Not doing this has also caused bugs, such as #4900.
This commit is contained in:
@@ -21,6 +21,8 @@ UNSTABLE.
|
||||
import logging
|
||||
import time
|
||||
|
||||
import gi
|
||||
gi.require_version('Atspi', '2.0')
|
||||
from gi.repository import Atspi
|
||||
from gi.repository import GLib
|
||||
|
||||
|
||||
Reference in New Issue
Block a user