unattended: Move gi require_version to virtinst import

Otherwise depending on import order this bit needs to be moved around
This commit is contained in:
Cole Robinson 2019-06-07 17:45:21 -04:00
parent c603ea4084
commit e6262435d6
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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