diff --git a/virtinst/__init__.py b/virtinst/__init__.py index 6db092105..9ebfb7c0e 100644 --- a/virtinst/__init__.py +++ b/virtinst/__init__.py @@ -3,6 +3,9 @@ # This work is licensed under the GNU GPLv2 or later. # See the COPYING file in the top-level directory. +import gi +gi.require_version('Libosinfo', '1.0') + from virtcli import CLIConfig as _CLIConfig diff --git a/virtinst/unattended.py b/virtinst/unattended.py index ce71bf179..c751fb34e 100644 --- a/virtinst/unattended.py +++ b/virtinst/unattended.py @@ -10,8 +10,6 @@ import logging import os import tempfile -import gi -gi.require_version('Libosinfo', '1.0') from gi.repository import Libosinfo from gi.repository import Gio from gi.repository import GLib