Dirty hack to work around libpeas problems. No clue if it will work or not.
This commit is contained in:
parent
ce80a3af75
commit
705d4bf553
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
"""Centralized setup for GObject Introspection (GI) in Cthulhu."""
|
"""Centralized setup for GObject Introspection (GI) in Cthulhu."""
|
||||||
|
|
||||||
|
from gi.repository import Peas
|
||||||
import gi
|
import gi
|
||||||
|
|
||||||
# FIRST: Load GIRepository with the correct version
|
# FIRST: Load GIRepository with the correct version
|
||||||
@ -36,7 +37,6 @@ except (ValueError, ImportError):
|
|||||||
# SECOND: Set versions for other modules and import them
|
# SECOND: Set versions for other modules and import them
|
||||||
gi.require_version('Atspi', '2.0')
|
gi.require_version('Atspi', '2.0')
|
||||||
gi.require_version('Gdk', '3.0')
|
gi.require_version('Gdk', '3.0')
|
||||||
gi.require_version('Peas', '1.0')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
@ -53,11 +53,6 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
Gdk = None
|
Gdk = None
|
||||||
|
|
||||||
try:
|
|
||||||
from gi.repository import Peas
|
|
||||||
except ImportError:
|
|
||||||
Peas = None
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
gi.require_version('Gio', '2.0')
|
gi.require_version('Gio', '2.0')
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
|
Loading…
x
Reference in New Issue
Block a user