2014-01-20 20:09:13 +04:00
# Copyright (C) 2013, 2014 Red Hat, Inc.
2013-03-18 01:06:52 +04:00
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
2013-10-28 00:59:47 +04:00
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
2013-03-18 01:06:52 +04:00
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
2014-09-08 18:40:34 +04:00
from virtcli import cliconfig as _cliconfig
2013-03-18 01:06:52 +04:00
2014-09-08 18:40:34 +04:00
def _setup_i18n ( ) :
import gettext
import locale
try :
locale . setlocale ( locale . LC_ALL , ' ' )
except :
# Can happen if user passed a bogus LANG
pass
gettext . install ( " virt-manager " , _cliconfig . gettext_dir )
gettext . bindtextdomain ( " virt-manager " , _cliconfig . gettext_dir )
_setup_i18n ( )
stable_defaults = _cliconfig . stable_defaults
2014-09-12 23:59:22 +04:00
from . import util
2013-08-09 04:47:17 +04:00
from virtinst import support
2013-03-18 01:06:52 +04:00
2013-07-17 15:53:47 +04:00
from virtinst . osxml import OSXML
2013-08-09 05:42:44 +04:00
from virtinst . domainfeatures import DomainFeatures
from virtinst . domainnumatune import DomainNumatune
2014-02-06 18:41:00 +04:00
from virtinst . domainblkiotune import DomainBlkiotune
2014-02-25 06:02:31 +04:00
from virtinst . domainmemorytune import DomainMemorytune
2014-03-22 14:15:46 +04:00
from virtinst . domainmemorybacking import DomainMemorybacking
2014-06-04 06:08:05 +04:00
from virtinst . domainresource import DomainResource
2013-08-09 05:42:44 +04:00
from virtinst . clock import Clock
from virtinst . cpu import CPU , CPUFeature
from virtinst . seclabel import Seclabel
2014-02-03 01:12:29 +04:00
from virtinst . pm import PM
2014-02-09 19:25:25 +04:00
from virtinst . idmap import IdMap
2013-08-09 05:42:44 +04:00
2014-09-12 23:59:22 +04:00
from virtinst import capabilities as CapabilitiesParser
2014-09-17 22:56:52 +04:00
from virtinst . domcapabilities import DomainCapabilities
2013-09-10 01:14:16 +04:00
from virtinst . interface import Interface , InterfaceProtocol
2013-09-21 04:40:07 +04:00
from virtinst . network import Network
2013-09-23 02:13:24 +04:00
from virtinst . nodedev import NodeDevice
2013-09-21 04:40:07 +04:00
from virtinst . storage import StoragePool , StorageVolume
2013-08-09 05:42:44 +04:00
from virtinst . device import VirtualDevice
from virtinst . deviceinterface import VirtualNetworkInterface
from virtinst . devicegraphics import VirtualGraphics
from virtinst . deviceaudio import VirtualAudio
from virtinst . deviceinput import VirtualInputDevice
from virtinst . devicedisk import VirtualDisk
from virtinst . devicehostdev import VirtualHostDevice
from virtinst . devicechar import ( VirtualChannelDevice ,
VirtualConsoleDevice ,
VirtualParallelDevice ,
VirtualSerialDevice )
from virtinst . devicevideo import VirtualVideoDevice
from virtinst . devicecontroller import VirtualController
from virtinst . devicewatchdog import VirtualWatchdog
from virtinst . devicefilesystem import VirtualFilesystem
from virtinst . devicesmartcard import VirtualSmartCardDevice
from virtinst . deviceredirdev import VirtualRedirDevice
from virtinst . devicememballoon import VirtualMemballoon
from virtinst . devicetpm import VirtualTPMDevice
2013-09-18 17:29:28 +04:00
from virtinst . devicerng import VirtualRNGDevice
2014-01-10 13:37:54 +04:00
from virtinst . devicepanic import VirtualPanicDevice
2013-08-09 05:42:44 +04:00
from virtinst . installer import ( ContainerInstaller , ImportInstaller ,
2014-09-07 21:42:56 +04:00
PXEInstaller , Installer )
2013-08-09 04:47:17 +04:00
2013-08-09 05:42:44 +04:00
from virtinst . distroinstaller import DistroInstaller
2013-08-09 04:47:17 +04:00
2013-08-09 05:42:44 +04:00
from virtinst . guest import Guest
from virtinst . cloner import Cloner
2013-08-06 01:20:35 +04:00
from virtinst . snapshot import DomainSnapshot
2013-08-09 04:47:17 +04:00
2013-07-05 16:59:58 +04:00
from virtinst . connection import VirtualConnection