From e6262435d602649360c8cd3b92be2acfb9c8faaf Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 7 Jun 2019 17:45:21 -0400 Subject: [PATCH] unattended: Move gi require_version to virtinst import Otherwise depending on import order this bit needs to be moved around --- virtinst/__init__.py | 3 +++ virtinst/unattended.py | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) 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