Comment 17 for bug 1028640

Revision history for this message
Steve Langasek (vorlon) wrote :

Possibly (untested):

if 'gi.repository' in sys.modules:
    from gi.repository import GObject
else:
    try:
        import gobject as GObject
    except:
        from gi.repository import GObject

?